compiler: audit debug mode checks

* Introduce `-Ddebug-extensions` for enabling compiler debug helpers
 * Replace safety mode checks with `std.debug.runtime_safety`
 * Replace debugger helper checks with `!builtin.strip_debug_info`

Sometimes, you just have to debug optimized compilers...
This commit is contained in:
Jacob Young
2024-03-01 16:46:48 +01:00
committed by Andrew Kelley
parent 155f5274ff
commit b60fc16b4f
19 changed files with 70 additions and 81 deletions

View File

@@ -5,11 +5,12 @@ pub const llvm_has_arc = false;
pub const llvm_has_xtensa = false;
pub const version: [:0]const u8 = "@RESOLVED_ZIG_VERSION@";
pub const semver = @import("std").SemanticVersion.parse(version) catch unreachable;
pub const enable_logging: bool = false;
pub const enable_link_snapshots: bool = false;
pub const enable_debug_extensions = false;
pub const enable_logging = false;
pub const enable_link_snapshots = false;
pub const enable_tracy = false;
pub const value_tracing = false;
pub const skip_non_native = false;
pub const only_c = false;
pub const force_gpa = false;
pub const only_c = false;
pub const only_core_functionality = true;