From 9811bb732cc72a2df18034702d5c929ade330259 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 11 Jan 2023 09:50:15 -0800 Subject: [PATCH] Add the `wasm32-wasi-pthread` output to the sysroot Now that the `wasm32-wasi-pthread` target in wasi-libc has been worked on for some amount of time, this change allows it to be released as a part of wasi-sdk packages. It should be noted somewhere (a compiler warning? README?) that this new target is not entirely stable, but that can be added as a follow-on commit. This change is mainly focused on ensuring that the build artifacts contain the new objects. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 8e78a092b..08bff0f15 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,12 @@ build/wasi-libc.BUILT: build/llvm.BUILT AR=$(BUILD_PREFIX)/bin/llvm-ar \ NM=$(BUILD_PREFIX)/bin/llvm-nm \ SYSROOT=$(BUILD_PREFIX)/share/wasi-sysroot + $(MAKE) -C $(ROOT_DIR)/src/wasi-libc \ + CC=$(BUILD_PREFIX)/bin/clang \ + AR=$(BUILD_PREFIX)/bin/llvm-ar \ + NM=$(BUILD_PREFIX)/bin/llvm-nm \ + SYSROOT=$(BUILD_PREFIX)/share/wasi-sysroot \ + THREAD_MODEL=posix touch build/wasi-libc.BUILT build/compiler-rt.BUILT: build/llvm.BUILT build/wasi-libc.BUILT