From f4a084465620295c61ace0b8bbff82e606628560 Mon Sep 17 00:00:00 2001 From: Cheng Shao Date: Sat, 3 Dec 2022 16:01:47 +0000 Subject: [PATCH] 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. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index c5a47a2..98d6b43 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,10 @@ build/llvm.BUILT: mkdir -p build/llvm cd build/llvm && cmake -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DLLVM_ENABLE_TERMINFO=OFF \ + -DLLVM_ENABLE_ZLIB=OFF \ + -DLLVM_ENABLE_ZSTD=OFF \ + -DLLVM_STATIC_LINK_CXX_STDLIB=ON \ -DCMAKE_INSTALL_PREFIX=$(PREFIX) \ -DLLVM_TARGETS_TO_BUILD=WebAssembly \ -DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasi \