Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,17 @@ build/llvm.BUILT:
touch build/llvm.BUILT

build/wasi-libc.BUILT: build/llvm.BUILT
$(MAKE) -C $(ROOT_DIR)/src/wasi-libc \
WASM_CC=$(PREFIX)/bin/clang \
SYSROOT=$(PREFIX)/share/wasi-sysroot
cmake -G Ninja \
--install \
-DCMAKE_SYSTEM_NAME=Generic \
-DCMAKE_AR=$(ROOT_DIR)/bin/llvm-ar \
-DCMAKE_NM=$(ROOT_DIR)/bin/llvm-nm \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pre-existing, but we can remove the "llvm-" from these commands, as we install a plain "nm" and "ar" now.

-DCMAKE_C_COMPILER=$(ROOT_DIR)/bin/clang \
-B build/wasi-libc \
-S $(ROOT_DIR)/src/wasi-libc
touch build/wasi-libc.BUILT

build/compiler-rt.BUILT: build/llvm.BUILT
build/compiler-rt.BUILT: build/wasi-libc.BUILT build/llvm.BUILT
mkdir -p build/compiler-rt
cd build/compiler-rt; cmake -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Expand Down
2 changes: 1 addition & 1 deletion src/wasi-libc