Browse Source

Add -fwasm-exceptions to WebAssembly flags
97bb3079af418ba360b54ebf515f6c1b0ae2b10a

dtorilov 1 year ago
parent
commit
23dedc1e66
1 changed files with 6 additions and 0 deletions
  1. 6 0
      build/ymake_conf.py

+ 6 - 0
build/ymake_conf.py

@@ -1475,6 +1475,12 @@ class GnuCompiler(Compiler):
         if self.target.is_x86_64:
             self.c_flags.append('-m64')
 
+        if self.target.is_wasm64:
+            # WebAssembly-specific exception handling flags
+            self.c_foptions += [
+                '-fwasm-exceptions',
+            ]
+
         self.debug_info_flags = ['-g']
         if self.target.is_linux:
             self.debug_info_flags.append('-ggnu-pubnames')