mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
zig cc: -O0 also counts as debug mode
This commit is contained in:
parent
86795c03f9
commit
38a1af5d4f
@ -688,7 +688,9 @@ static int main0(int argc, char **argv) {
|
||||
strcmp(it.only_arg, "O4") == 0)
|
||||
{
|
||||
build_mode = BuildModeFastRelease;
|
||||
} else if (strcmp(it.only_arg, "Og") == 0) {
|
||||
} else if (strcmp(it.only_arg, "Og") == 0 ||
|
||||
strcmp(it.only_arg, "O0") == 0)
|
||||
{
|
||||
build_mode = BuildModeDebug;
|
||||
} else {
|
||||
for (size_t i = 0; i < it.other_args_len; i += 1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user