aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorLoris Cro <kappaloris@gmail.com>2023-04-25 20:03:53 +0200
committerGitHub <noreply@github.com>2023-04-25 20:03:53 +0200
commit015ea6fd6c0c0deacb42de237f737d208737e3ac (patch)
tree33f5e2d3acacc24e63f259ce5485fee28243ed44 /src/Module.zig
parenta260fa8bf22b952e96b08c3f206756e1784ce870 (diff)
parent8d88dcdc61c61e3410138f4402482131f5074a80 (diff)
downloadzig-015ea6fd6c0c0deacb42de237f737d208737e3ac.tar.gz
zig-015ea6fd6c0c0deacb42de237f737d208737e3ac.zip
Merge branch 'master' into autodoc-pkg-mod
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index fa91e8c1ed..27f7b24e7a 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -6626,7 +6626,7 @@ pub fn backendSupportsFeature(mod: Module, feature: Feature) bool {
.safety_check_formatted => 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,
+ .error_set_has_value => mod.comp.bin_file.options.use_llvm or mod.comp.bin_file.options.target.isWasm(),
.field_reordering => mod.comp.bin_file.options.use_llvm,
};
}