Skip to content

Build libclang_rt.builtin for wasip1-threads target separately #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

kateinoigakukun
Copy link
Member

compiler-rt/lib/builtins/atomic.c has to be built with atomics feature enabled for wasip1-threads target. We had been sharing the same libclang_rt.builtins.a for both wasi and wasip1-threads targets, but enabling atomics feature breaks non-threaded wasi target due to unnecessary feature dependencies.
swiftlang/swift#73077 will build libclang_rt.builtins.a separately and install wasi-sysroot under different directories for each target.

@kateinoigakukun kateinoigakukun force-pushed the yt/fix-build-compiler-rt-builtin branch from 041aaf0 to 516d00a Compare April 18, 2024 08:54
kateinoigakukun and others added 3 commits April 23, 2024 16:07
`compiler-rt/lib/builtins/atomic.c` has to be built with atomics feature
enabled for wasip1-threads target. We had been sharing the same
libclang_rt.builtins.a for both wasi and wasip1-threads targets, but
enabling atomics feature breaks non-threaded wasi target due to
unnecessary feature dependencies.
swiftlang/swift#73077 will build libclang_rt.builtins.a
separately and install wasi-sysroot under different directories for each
target.
@kateinoigakukun kateinoigakukun force-pushed the yt/fix-build-compiler-rt-builtin branch from 516d00a to 6b15a0b Compare April 23, 2024 16:09
apple/swift build-script now builds wasi-sysroot for each target triple
and stores them in target-triple specific directories.
@kateinoigakukun kateinoigakukun marked this pull request as ready for review April 25, 2024 12:26
@kateinoigakukun kateinoigakukun merged commit dd0215c into main Apr 25, 2024
22 checks passed
@kateinoigakukun kateinoigakukun deleted the yt/fix-build-compiler-rt-builtin branch April 25, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant