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.
This commit is contained in:
Jacob Young
2025-05-30 14:38:46 -04:00
committed by mlugg
parent 4c4dacf81a
commit d9b6d1ed33
5 changed files with 13 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
pub const Env = enum {
/// zig1 features
/// - `-ofmt=c` only
/// - `-OReleaseFast` or `-OReleaseSmall` only
/// - no `@setRuntimeSafety(true)`
bootstrap,
/// zig2 features