| ... | @@ -450,7 +450,7 @@ int main(int argc, char **argv) { | ... | @@ -450,7 +450,7 @@ int main(int argc, char **argv) { |
| 450 | int runtime_args_start = -1; | 450 | int runtime_args_start = -1; |
| 451 | bool system_linker_hack = false; | 451 | bool system_linker_hack = false; |
| 452 | TargetSubsystem subsystem = TargetSubsystemAuto; | 452 | TargetSubsystem subsystem = TargetSubsystemAuto; |
| 453 | bool is_single_threaded = false; | 453 | bool want_single_threaded = false; |
| 454 | bool disable_gen_h = false; | 454 | bool disable_gen_h = false; |
| 455 | Buf *override_std_dir = nullptr; | 455 | Buf *override_std_dir = nullptr; |
| 456 | Buf *main_pkg_path = nullptr; | 456 | Buf *main_pkg_path = nullptr; |
| ... | @@ -590,7 +590,7 @@ int main(int argc, char **argv) { | ... | @@ -590,7 +590,7 @@ int main(int argc, char **argv) { |
| 590 | CodeGen *g = codegen_create(main_pkg_path, fmt_runner_path, &target, OutTypeExe, | 590 | CodeGen *g = codegen_create(main_pkg_path, fmt_runner_path, &target, OutTypeExe, |
| 591 | BuildModeDebug, get_zig_lib_dir(), nullptr, nullptr, cache_dir_buf); | 591 | BuildModeDebug, get_zig_lib_dir(), nullptr, nullptr, cache_dir_buf); |
| 592 | g->valgrind_support = valgrind_support; | 592 | g->valgrind_support = valgrind_support; |
| 593 | g->is_single_threaded = true; | 593 | g->want_single_threaded = true; |
| 594 | codegen_set_out_name(g, buf_create_from_str("fmt")); | 594 | codegen_set_out_name(g, buf_create_from_str("fmt")); |
| 595 | g->enable_cache = true; | 595 | g->enable_cache = true; |
| 596 | | 596 | |
| ... | @@ -671,7 +671,7 @@ int main(int argc, char **argv) { | ... | @@ -671,7 +671,7 @@ int main(int argc, char **argv) { |
| 671 | } else if (strcmp(arg, "--system-linker-hack") == 0) { | 671 | } else if (strcmp(arg, "--system-linker-hack") == 0) { |
| 672 | system_linker_hack = true; | 672 | system_linker_hack = true; |
| 673 | } else if (strcmp(arg, "--single-threaded") == 0) { | 673 | } else if (strcmp(arg, "--single-threaded") == 0) { |
| 674 | is_single_threaded = true; | 674 | want_single_threaded = true; |
| 675 | } else if (strcmp(arg, "--disable-gen-h") == 0) { | 675 | } else if (strcmp(arg, "--disable-gen-h") == 0) { |
| 676 | disable_gen_h = true; | 676 | disable_gen_h = true; |
| 677 | } else if (strcmp(arg, "--test-cmd-bin") == 0) { | 677 | } else if (strcmp(arg, "--test-cmd-bin") == 0) { |
| ... | @@ -921,10 +921,6 @@ int main(int argc, char **argv) { | ... | @@ -921,10 +921,6 @@ int main(int argc, char **argv) { |
| 921 | } | 921 | } |
| 922 | } | 922 | } |
| 923 | | 923 | |
| 924 | if (target_is_single_threaded(&target)) { | | |
| 925 | is_single_threaded = true; | | |
| 926 | } | | |
| 927 | | | |
| 928 | if (output_dir != nullptr && enable_cache == CacheOptOn) { | 924 | if (output_dir != nullptr && enable_cache == CacheOptOn) { |
| 929 | fprintf(stderr, "`--output-dir` is incompatible with --cache on.\n"); | 925 | fprintf(stderr, "`--output-dir` is incompatible with --cache on.\n"); |
| 930 | return print_error_usage(arg0); | 926 | return print_error_usage(arg0); |
| ... | @@ -966,7 +962,7 @@ int main(int argc, char **argv) { | ... | @@ -966,7 +962,7 @@ int main(int argc, char **argv) { |
| 966 | out_type, build_mode, get_zig_lib_dir(), override_std_dir, nullptr, nullptr); | 962 | out_type, build_mode, get_zig_lib_dir(), override_std_dir, nullptr, nullptr); |
| 967 | g->valgrind_support = valgrind_support; | 963 | g->valgrind_support = valgrind_support; |
| 968 | g->want_pic = want_pic; | 964 | g->want_pic = want_pic; |
| 969 | g->is_single_threaded = is_single_threaded; | 965 | g->want_single_threaded = want_single_threaded; |
| 970 | Buf *builtin_source = codegen_generate_builtin_source(g); | 966 | Buf *builtin_source = codegen_generate_builtin_source(g); |
| 971 | if (fwrite(buf_ptr(builtin_source), 1, buf_len(builtin_source), stdout) != buf_len(builtin_source)) { | 967 | if (fwrite(buf_ptr(builtin_source), 1, buf_len(builtin_source), stdout) != buf_len(builtin_source)) { |
| 972 | fprintf(stderr, "unable to write to stdout: %s\n", strerror(ferror(stdout))); | 968 | fprintf(stderr, "unable to write to stdout: %s\n", strerror(ferror(stdout))); |
| ... | @@ -1064,7 +1060,7 @@ int main(int argc, char **argv) { | ... | @@ -1064,7 +1060,7 @@ int main(int argc, char **argv) { |
| 1064 | codegen_set_out_name(g, buf_out_name); | 1060 | codegen_set_out_name(g, buf_out_name); |
| 1065 | codegen_set_lib_version(g, ver_major, ver_minor, ver_patch); | 1061 | codegen_set_lib_version(g, ver_major, ver_minor, ver_patch); |
| 1066 | codegen_set_is_test(g, cmd == CmdTest); | 1062 | codegen_set_is_test(g, cmd == CmdTest); |
| 1067 | g->is_single_threaded = is_single_threaded; | 1063 | g->want_single_threaded = want_single_threaded; |
| 1068 | codegen_set_linker_script(g, linker_script); | 1064 | codegen_set_linker_script(g, linker_script); |
| 1069 | if (each_lib_rpath) | 1065 | if (each_lib_rpath) |
| 1070 | codegen_set_each_lib_rpath(g, each_lib_rpath); | 1066 | codegen_set_each_lib_rpath(g, each_lib_rpath); |