zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 41162ed6467f7e157cc0a45154647dd93bcd2e74 (tree)
parent 43373e61fa4ff7098b7b481fa72c1d205c530421
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 26 May 2022 18:59:55 -0700

stage0: fix -fsingle-threaded CLI arg parsing

closes #11730

Diffstat:
Msrc/stage1/zig0.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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