| ... | @@ -8341,6 +8341,10 @@ void add_cc_args(CodeGen *g, ZigList<const char *> &args, const char *out_dep_pa | ... | @@ -8341,6 +8341,10 @@ void add_cc_args(CodeGen *g, ZigList<const char *> &args, const char *out_dep_pa |
| 8341 | args.append("-nostdinc"); | 8341 | args.append("-nostdinc"); |
| 8342 | args.append("-fno-spell-checking"); | 8342 | args.append("-fno-spell-checking"); |
| 8343 | | 8343 | |
| | 8344 | if (g->function_sections) { |
| | 8345 | args.append("-ffunction-sections"); |
| | 8346 | } |
| | 8347 | |
| 8344 | if (translate_c) { | 8348 | if (translate_c) { |
| 8345 | // this gives us access to preprocessing entities, presumably at | 8349 | // this gives us access to preprocessing entities, presumably at |
| 8346 | // the cost of performance | 8350 | // the cost of performance |
| ... | @@ -8765,10 +8769,10 @@ Error create_c_object_cache(CodeGen *g, CacheHash **out_cache_hash, bool verbose | ... | @@ -8765,10 +8769,10 @@ Error create_c_object_cache(CodeGen *g, CacheHash **out_cache_hash, bool verbose |
| 8765 | cache_int(cache_hash, g->build_mode); | 8769 | cache_int(cache_hash, g->build_mode); |
| 8766 | cache_bool(cache_hash, g->have_pic); | 8770 | cache_bool(cache_hash, g->have_pic); |
| 8767 | cache_bool(cache_hash, want_valgrind_support(g)); | 8771 | cache_bool(cache_hash, want_valgrind_support(g)); |
| | 8772 | cache_bool(cache_hash, g->function_sections); |
| 8768 | for (size_t arg_i = 0; arg_i < g->clang_argv_len; arg_i += 1) { | 8773 | for (size_t arg_i = 0; arg_i < g->clang_argv_len; arg_i += 1) { |
| 8769 | cache_str(cache_hash, g->clang_argv[arg_i]); | 8774 | cache_str(cache_hash, g->clang_argv[arg_i]); |
| 8770 | } | 8775 | } |
| 8771 | cache_bool(cache_hash, g->function_sections); | | |
| 8772 | | 8776 | |
| 8773 | *out_cache_hash = cache_hash; | 8777 | *out_cache_hash = cache_hash; |
| 8774 | return ErrorNone; | 8778 | return ErrorNone; |