diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-04-06 13:59:11 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-04-06 13:59:11 -0400 |
| commit | 10dbc735fe4e4575821837f00eb173286a1f88ee (patch) | |
| tree | 1ca87def8ca8d85d8b73e61e3fb007ca0815e844 /std/build.zig | |
| parent | 6fbe1632d0c958b9abbc9f38a7e497ef69543bf1 (diff) | |
| download | zig-10dbc735fe4e4575821837f00eb173286a1f88ee.tar.gz zig-10dbc735fe4e4575821837f00eb173286a1f88ee.zip | |
zig build: use -D for options instead of -O
because -O is usually optimization level
Diffstat (limited to 'std/build.zig')
| -rw-r--r-- | std/build.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/std/build.zig b/std/build.zig index a3c0286bed..1917d1258b 100644 --- a/std/build.zig +++ b/std/build.zig @@ -268,13 +268,13 @@ pub const Builder = struct { } else if (mem.eql(u8, s, "false")) { return false; } else { - %%io.stderr.printf("Expected -O{} to be a boolean, but received '{}'\n", name, s); + %%io.stderr.printf("Expected -D{} to be a boolean, but received '{}'\n", name, s); self.markInvalidUserInput(); return null; } }, UserValue.List => { - %%io.stderr.printf("Expected -O{} to be a boolean, but received a list.\n", name); + %%io.stderr.printf("Expected -D{} to be a boolean, but received a list.\n", name); self.markInvalidUserInput(); return null; }, @@ -312,7 +312,7 @@ pub const Builder = struct { }); }, UserValue.Flag => { - %%io.stderr.printf("Option '-O{}={}' conflicts with flag '-O{}'.\n", name, value, name); + %%io.stderr.printf("Option '-D{}={}' conflicts with flag '-D{}'.\n", name, value, name); return true; }, } @@ -328,11 +328,11 @@ pub const Builder = struct { })) { switch (prev_value.value) { UserValue.Scalar => |s| { - %%io.stderr.printf("Flag '-O{}' conflicts with option '-O{}={}'.\n", name, name, s); + %%io.stderr.printf("Flag '-D{}' conflicts with option '-D{}={}'.\n", name, name, s); return true; }, UserValue.List => { - %%io.stderr.printf("Flag '-O{}' conflicts with multiple options of the same name.\n", name); + %%io.stderr.printf("Flag '-D{}' conflicts with multiple options of the same name.\n", name); return true; }, UserValue.Flag => {}, @@ -374,7 +374,7 @@ pub const Builder = struct { while (true) { const entry = it.next() ?? break; if (!entry.value.used) { - %%io.stderr.printf("Invalid option: -O{}\n\n", entry.key); + %%io.stderr.printf("Invalid option: -D{}\n\n", entry.key); self.markInvalidUserInput(); } } |
