diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-24 19:14:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-26 20:56:21 -0700 |
| commit | 396bd51c4818752f6309ff10f2d316f41598d5cd (patch) | |
| tree | 452bc2f332c7a3ee6ab9d0274582b4b9da6800d6 /src/Module.zig | |
| parent | afbcad9939169f0b9b9b8ecb287718023c58b428 (diff) | |
| download | zig-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.zig | 3 |
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(), |
