-
Notifications
You must be signed in to change notification settings - Fork 191
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
Start renaming preview1 to p1 and preview2 to p2 #386
Start renaming preview1 to p1 and preview2 to p2 #386
Conversation
I'll note that I'm opening this as a draft here because WebAssembly/wasi-libc#478 should land first. In the meantime I've updated the submodule in this PR to point at my fork of wasi-libc, which should not land in this repository (it's just here for testing in CI and showing what this will look like) |
This commit is a reflection of WebAssembly/wasi-libc#478 into this repository where a few changes are happening: * A new `wasm32-wasip1` sysroot is prepared matching `wasm32-wasi` * A new `wasm32-wasip1-threads` sysroot is prepared matching `wasm32-wasi-threads` * The `wasm32-wasi-preview2` target is renamed `wasm32-wasip2` I've done a bit of makefile refactoring to deduplicate things a bit now that there's a number of targets being built. The long-term goal would be to remove the `wasm32-wasi` and `wasm32-wasip1-threads` targets, but that's not proposed just yet at this time.
36499ca
to
46a5ce1
Compare
With WebAssembly/wasi-libc#478 now landed I've updated this to the official submodule and this is no longer a draft. |
Makefile
Outdated
@@ -156,11 +152,15 @@ build/compiler-rt.BUILT: build/llvm.BUILT | |||
DESTDIR=$(DESTDIR) ninja $(NINJA_FLAGS) -C build/compiler-rt install | |||
# Install clang-provided headers. | |||
cp -R $(ROOT_DIR)/build/llvm/lib/clang $(BUILD_PREFIX)/lib/ | |||
cp -R $(BUILD_PREFIX)/lib/clang/17/lib/wasi $(BUILD_PREFIX)/lib/clang/17/lib/wasip1 | |||
cp -R $(BUILD_PREFIX)/lib/clang/17/lib/wasi $(BUILD_PREFIX)/lib/clang/17/lib/wasip2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these use $(CLANG_VERSION)
instead of hard-coding 17
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes indeed! I didn't look hard enough to find that.
do you mean wasm32-wasi-threads? |
This commit is a reflection of WebAssembly/wasi-libc#478 into this repository where a few changes are happening:
wasm32-wasip1
sysroot is prepared matchingwasm32-wasi
wasm32-wasip1-threads
sysroot is prepared matchingwasm32-wasi-threads
wasm32-wasi-preview2
target is renamedwasm32-wasip2
I've done a bit of makefile refactoring to deduplicate things a bit now that there's a number of targets being built.
The long-term goal would be to remove the
wasm32-wasi
andwasm32-wasip1-threads
targets, but that's not proposed just yet at this time.