diff --git a/build.sh b/build.sh index c0a0b81..425ce77 100644 --- a/build.sh +++ b/build.sh @@ -223,6 +223,7 @@ cmake \ -DCMAKE_BUILD_TYPE='MinSizeRel' \ -DLLVM_ENABLE_ASSERTIONS=OFF \ -DLLVM_ENABLE_PROJECTS='lld' \ + -DLLVM_NATIVE_TOOL_DIR=$(dirname "${LLVM_TABLEGEN}") -DLLVM_TABLEGEN="${LLVM_TABLEGEN}" \ -DCMAKE_CXX_FLAGS='-static-libgcc -static-libstdc++' \ -DLLVM_TOOLCHAIN_TOOLS='llvm-ar;llvm-ranlib;llvm-objdump;llvm-rc;llvm-cvtres;llvm-nm;llvm-strings;llvm-readobj;llvm-dlltool;llvm-pdbutil;llvm-objcopy;llvm-strip;llvm-cov;llvm-profdata;llvm-addr2line;llvm-symbolizer;llvm-windres;llvm-ml;llvm-readelf;llvm-size;llvm-cxxfilt' \