aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-04-24 19:14:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-04-26 20:56:21 -0700
commit396bd51c4818752f6309ff10f2d316f41598d5cd (patch)
tree452bc2f332c7a3ee6ab9d0274582b4b9da6800d6 /src/Module.zig
parentafbcad9939169f0b9b9b8ecb287718023c58b428 (diff)
downloadzig-396bd51c4818752f6309ff10f2d316f41598d5cd.tar.gz
zig-396bd51c4818752f6309ff10f2d316f41598d5cd.zip
enable debugging infrastructure when using C backend
Thanks to @jacobly0's recent enhancements to the C backend, this stuff works now.
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 8460c243d7..6738322d01 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -6629,7 +6629,8 @@ pub fn backendSupportsFeature(mod: Module, feature: Feature) bool {
mod.comp.bin_file.options.use_llvm,
.panic_unwrap_error => mod.comp.bin_file.options.target.ofmt == .c or
mod.comp.bin_file.options.use_llvm,
- .safety_check_formatted => mod.comp.bin_file.options.use_llvm,
+ .safety_check_formatted => mod.comp.bin_file.options.target.ofmt == .c or
+ mod.comp.bin_file.options.use_llvm,
.error_return_trace => mod.comp.bin_file.options.use_llvm,
.is_named_enum_value => mod.comp.bin_file.options.use_llvm,
.error_set_has_value => mod.comp.bin_file.options.use_llvm or mod.comp.bin_file.options.target.isWasm(),