Skip to content

Commit

Permalink
Exclude setjmp runtime from LTO
Browse files Browse the repository at this point in the history
This fixes errors like:
```
wasm-ld: error: /Volumes/PortableSSD/git/wasi-sdk/build/install/bin/../share/wasi-sysroot/lib/wasm32-wasi/llvm-lto/19.1.0-wasi-sdk/libsetjmp.a(rt.o): attempt to add bitcode file after LTO (__wasm_longjmp)
```
  • Loading branch information
yamt committed Aug 23, 2024
1 parent 230d4be commit 393e614
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
LIBC_NONLTO_SOURCES = \
$(addprefix $(LIBC_TOP_HALF_MUSL_SRC_DIR)/, \
exit/atexit.c \
setjmp/wasm32/rt.c \
)

ifeq ($(WASI_SNAPSHOT), p2)
Expand Down

0 comments on commit 393e614

Please sign in to comment.