authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-26 18:59:55-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-26 18:59:55-07:00
log41162ed6467f7e157cc0a45154647dd93bcd2e74
treec363ca8457e5e8bfc20bb39715b189a65b9fb6e3
parent43373e61fa4ff7098b7b481fa72c1d205c530421

stage0: fix -fsingle-threaded CLI arg parsing

closes #11730

1 files changed, 2 insertions(+), 2 deletions(-)

src/stage1/zig0.cpp+2-2
...@@ -45,7 +45,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {...@@ -45,7 +45,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) {
45 " -OReleaseFast build with optimizations on and safety off\n"45 " -OReleaseFast build with optimizations on and safety off\n"
46 " -OReleaseSafe build with optimizations on and safety on\n"46 " -OReleaseSafe build with optimizations on and safety on\n"
47 " -OReleaseSmall build with size optimizations on and safety off\n"47 " -OReleaseSmall build with size optimizations on and safety off\n"
48 " --single-threaded source may assume it is only used single-threaded\n"48 " -fsingle-threaded source may assume it is only used single-threaded\n"
49 " -dynamic create a shared library (.so; .dll; .dylib)\n"49 " -dynamic create a shared library (.so; .dll; .dylib)\n"
50 " --strip exclude debug symbols\n"50 " --strip exclude debug symbols\n"
51 " -target [name] <arch>-<os>-<abi> see the targets command\n"51 " -target [name] <arch>-<os>-<abi> see the targets command\n"
...@@ -282,7 +282,7 @@ int main(int argc, char **argv) {...@@ -282,7 +282,7 @@ int main(int argc, char **argv) {
282 optimize_mode = BuildModeSafeRelease;282 optimize_mode = BuildModeSafeRelease;
283 } else if (strcmp(arg, "-OReleaseSmall") == 0) {283 } else if (strcmp(arg, "-OReleaseSmall") == 0) {
284 optimize_mode = BuildModeSmallRelease;284 optimize_mode = BuildModeSmallRelease;
285 } else if (strcmp(arg, "--single-threaded") == 0) {285 } else if (strcmp(arg, "-fsingle-threaded") == 0) {
286 single_threaded = true;286 single_threaded = true;
287 } else if (strcmp(arg, "--help") == 0) {287 } else if (strcmp(arg, "--help") == 0) {
288 return print_full_usage(arg0, stdout, EXIT_SUCCESS);288 return print_full_usage(arg0, stdout, EXIT_SUCCESS);