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/Value.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Value.zig') diff --git a/src/Value.zig b/src/Value.zig index 68951d57cd..86cfb55640 100644 --- a/src/Value.zig +++ b/src/Value.zig @@ -4069,7 +4069,7 @@ fn dbHelper(self: *Value, tag_to_payload_map: *map: { } comptime { - if (builtin.mode == .Debug) { + if (!builtin.strip_debug_info) { _ = &dbHelper; } } -- cgit v1.2.3