diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-01-30 21:39:43 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-01-31 15:09:35 -0700 |
| commit | 73cf7b64291ed8b5dcb4cb52df103be08f15a347 (patch) | |
| tree | bc5d933ec1440850e910b71dfa9166c87fc53d62 /lib/std/builtin.zig | |
| parent | 71ff60f1265da83e619b1b6b2488ecb448fdfd36 (diff) | |
| download | zig-73cf7b64291ed8b5dcb4cb52df103be08f15a347.tar.gz zig-73cf7b64291ed8b5dcb4cb52df103be08f15a347.zip | |
update build.zig API usage
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 4d949946d8..74c61d229b 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -131,13 +131,16 @@ pub const CodeModel = enum { /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. -pub const Mode = enum { +pub const OptimizeMode = enum { Debug, ReleaseSafe, ReleaseFast, ReleaseSmall, }; +/// Deprecated; use OptimizeMode. +pub const Mode = OptimizeMode; + /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const CallingConvention = enum { |
