aboutsummaryrefslogtreecommitdiff
path: root/src/dev.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2025-05-30 14:38:46 -0400
committermlugg <mlugg@mlugg.co.uk>2025-06-01 08:24:00 +0100
commitd9b6d1ed33d18eb13fa2cb39da3e7a381742975b (patch)
treeafdfcb8ec66c779f9afc064f27befa3ce8036c63 /src/dev.zig
parent4c4dacf81a5da85a1f7d1550ed45f5cb20fd1524 (diff)
downloadzig-d9b6d1ed33d18eb13fa2cb39da3e7a381742975b.tar.gz
zig-d9b6d1ed33d18eb13fa2cb39da3e7a381742975b.zip
cbe: legalize safety instructions in non-zig1 builds
This is valid if the bootstrap dev env doesn't need to support runtime safety. Another solution can always be implemented if needs change.
Diffstat (limited to 'src/dev.zig')
-rw-r--r--src/dev.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dev.zig b/src/dev.zig
index 019f18daeb..1dc8264ebc 100644
--- a/src/dev.zig
+++ b/src/dev.zig
@@ -1,5 +1,8 @@
pub const Env = enum {
/// zig1 features
+ /// - `-ofmt=c` only
+ /// - `-OReleaseFast` or `-OReleaseSmall` only
+ /// - no `@setRuntimeSafety(true)`
bootstrap,
/// zig2 features