Issue 124988
Summary [WebAssembly] --no-wasm-opt skips linker step
Labels new issue
Assignees
Reporter Photosounder
    By default if clang detects wasm-opt then wasm-opt is called after calling wasm-ld. But regardless of wasm-opt's presence, when `--no-wasm-opt` is given to clang then the linker is skipped.

Compiled with this command:

```
clang --target=wasm64 -nostdlib -mexec-model=reactor -Oz \
	-Wl,--initial-memory=$((10*1024*1024)),--max-memory=$((2*1024*1024*1024)) -z stack-size=$((16*1024)) \
	-Wl,--stack-first -Wl,--export=__heap_base,--export=__data_end,--export=__stack_pointer \
	*.c -o spiral.wasm -flto --no-wasm-opt
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to