anutosh491 wrote:

This should work as expected now (negating the reset options call by wasm-ld)

<img width="2146" height="632" alt="image" 
src="https://github.com/user-attachments/assets/622beeec-f9f2-4753-9150-170de9a3a42b";
 />


And I tried adding a test for the same. But the test fails with the following 
which is very weird.

```
[ RUN      ] InterpreterTest.EmscriptenExceptionHandling
clang version 23.0.0git (https://github.com/anutosh491/llvm-project.git 
c97d0bc17a7677f4022a345fc4adae09198e3952)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: 
 "" -cc1 -triple wasm32-unknown-emscripten -emit-obj -disable-free 
-clear-ast-before-backend -disable-llvm-verifier -discard-value-names 
-main-file-name "<<< inputs >>>" -mrelocation-model static -mframe-pointer=none 
-ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu generic 
-debugger-tuning=gdb -fdebug-compilation-dir=/ -v -fcoverage-compilation-dir=/ 
-resource-dir lib/clang/23 -internal-isystem lib/clang/23/include 
-internal-isystem /include/wasm32-emscripten -internal-isystem /include 
-std=c++23 -fdeprecated-macro -ferror-limit 19 -fmessage-length=80 
-fvisibility=default -fgnuc-version=4.2.1 -fno-implicit-modules 
-fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -fincremental-extensions 
-mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -o "<<< 
inputs >>>.o" -x c++ "<<< inputs >>>"
clang (LLVM option parsing): Unknown command line argument 
'-enable-emscripten-cxx-exceptions'.  Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean '--print-all-options'?
clang (LLVM option parsing): Unknown command line argument 
'-enable-emscripten-sjlj'.  Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean '--help-list-hidden'?
```

@mcbarton would you like to help me out here. Could you build latest upstream 
with the patch and with tests enabled and check this out for me! 

I am able to run it in the browser so not sure why the test would say any 
different.

https://github.com/llvm/llvm-project/pull/132670
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to