From b60fc16b4f6b973ce2207fb28b77606d45961972 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 1 Mar 2024 16:46:48 +0100 Subject: 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... --- src/InternPool.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/InternPool.zig') diff --git a/src/InternPool.zig b/src/InternPool.zig index 5ff179cb74..beeb0b9520 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -2593,7 +2593,7 @@ pub const Index = enum(u32) { } comptime { - if (builtin.mode == .Debug) { + if (!builtin.strip_debug_info) { _ = &dbHelper; } } -- cgit v1.2.3