Exclude setjmp runtime from LTO#529
Merged
abrown merged 1 commit intoWebAssembly:mainfrom Aug 27, 2024
Merged
Conversation
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) ```
This was referenced Aug 23, 2024
sbc100
approved these changes
Aug 23, 2024
Member
sbc100
left a comment
There was a problem hiding this comment.
We might want to explain in the PR description why this is needed.
Something along the lines of "Any symbol that the compiler might generate at bitcode compile time either need to be unconditionally included at LTO time, or not built as LTO. This is because LTO object files cannot be added to the link after LTO time".
Contributor
Author
i copy and pasted your description. thank you. |
yamt
added a commit
to yamt/wasi-sdk
that referenced
this pull request
Aug 28, 2024
For following changes: * WebAssembly/wasi-libc#526 * WebAssembly/wasi-libc#529
yamt
added a commit
to yamt/wasi-sdk
that referenced
this pull request
Sep 18, 2024
For following changes: * WebAssembly/wasi-libc#526 * WebAssembly/wasi-libc#529
alexcrichton
pushed a commit
to WebAssembly/wasi-sdk
that referenced
this pull request
Sep 24, 2024
* llvmorg-19.1.0-rc3 * document setjmp/longjmp support * README.md: mention SetjmpLongjmp.md * bump wasi-libc For following changes: * WebAssembly/wasi-libc#526 * WebAssembly/wasi-libc#529 * bump llvm to llvmorg-19.1.0-rc4 * bump llvm to llvmorg-19.1.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes errors like:
Note: Any symbol that the compiler might generate at bitcode compile time either need to be unconditionally included at LTO time, or not built as LTO. This is because LTO object files cannot be added to the link after LTO time.