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:
committed by
Andrew Kelley
parent
155f5274ff
commit
b60fc16b4f
@@ -574,7 +574,7 @@ pub fn MultiArrayList(comptime T: type) type {
|
||||
}
|
||||
|
||||
comptime {
|
||||
if (builtin.mode == .Debug) {
|
||||
if (!builtin.strip_debug_info) {
|
||||
_ = &dbHelper;
|
||||
_ = &Slice.dbHelper;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user