Skip to content

Commit

Permalink
Add CMake toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed May 17, 2024
1 parent 24c8060 commit 882403c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,13 @@ make install

cd "${llvm_directory}/build"
rm --force --recursive ./*

# -DCMAKE_CXX_FLAGS='-static-libgcc -static-libstdc++' \
cmake \
${cmake_cross_compile_flags} \
-DCMAKE_BUILD_TYPE='MinSizeRel' \
-DLLVM_ENABLE_ASSERTIONS=OFF \
-DLLVM_ENABLE_PROJECTS='lld' \
-DLLVM_TABLEGEN='/usr/bin/llvm-tblgen-14' \
-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' \
-DCMAKE_INSTALL_PREFIX="${toolchain_directory}" \
"${llvm_directory}/llvm"
Expand Down

0 comments on commit 882403c

Please sign in to comment.