Skip to content

Commit f4a0844

Browse files
TerrorJacksunfishcode
authored andcommitted
Disable terminfo/zlib/zstd
These dependencies are not needed in wasi-sdk, and if they're enabled, the msys2 dll depenndencies will leak into build products. Also statically links libstdc++, required for the windows build.
1 parent adc0309 commit f4a0844

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ build/llvm.BUILT:
5656
mkdir -p build/llvm
5757
cd build/llvm && cmake -G Ninja \
5858
-DCMAKE_BUILD_TYPE=MinSizeRel \
59+
-DLLVM_ENABLE_TERMINFO=OFF \
60+
-DLLVM_ENABLE_ZLIB=OFF \
61+
-DLLVM_ENABLE_ZSTD=OFF \
62+
-DLLVM_STATIC_LINK_CXX_STDLIB=ON \
5963
-DCMAKE_INSTALL_PREFIX=$(PREFIX) \
6064
-DLLVM_TARGETS_TO_BUILD=WebAssembly \
6165
-DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasi \

0 commit comments

Comments
 (0)