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

@@ -574,7 +574,7 @@ pub fn MultiArrayList(comptime T: type) type {
}
comptime {
if (builtin.mode == .Debug) {
if (!builtin.strip_debug_info) {
_ = &dbHelper;
_ = &Slice.dbHelper;
}