Skip to content

Commit

Permalink
cmake: fix llvm related warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesMengCA authored Nov 21, 2024
1 parent 9c153bc commit c867b25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion toolchain/llvm/llvm-compiler-rt-builtin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ExternalProject_Add(llvm-compiler-rt-builtin
-DCOMPILER_RT_BUILD_BUILTINS=TRUE
-DCOMPILER_RT_INCLUDE_TESTS=FALSE
-DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=FALSE
-DLLVM_CONFIG_PATH=""
-DLLVM_CONFIG_PATH=''
-DCMAKE_FIND_ROOT_PATH=${MINGW_INSTALL_PREFIX}
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY
Expand Down
2 changes: 1 addition & 1 deletion toolchain/llvm/llvm-compiler-rt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ExternalProject_Add(llvm-compiler-rt
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=TRUE
-DCOMPILER_RT_BUILD_BUILTINS=FALSE
-DCOMPILER_RT_INCLUDE_TESTS=FALSE
-DLLVM_CONFIG_PATH=""
-DLLVM_CONFIG_PATH=''
-DCMAKE_FIND_ROOT_PATH=${MINGW_INSTALL_PREFIX}
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY
Expand Down
4 changes: 2 additions & 2 deletions toolchain/llvm/llvm-libcxx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ExternalProject_Add(llvm-libcxx
-DLIBCXX_ENABLE_STATIC=ON
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=TRUE
-DLIBCXX_CXX_ABI=libcxxabi
-DLIBCXX_LIBDIR_SUFFIX=""
-DLIBCXX_LIBDIR_SUFFIX=''
-DLIBCXX_INCLUDE_TESTS=FALSE
-DLIBCXXABI_INCLUDE_TESTS=FALSE
-DLIBUNWIND_INCLUDE_TESTS=FALSE
Expand All @@ -37,7 +37,7 @@ ExternalProject_Add(llvm-libcxx
-DLIBCXXABI_USE_COMPILER_RT=ON
-DLIBCXXABI_USE_LLVM_UNWINDER=ON
-DLIBCXXABI_ENABLE_SHARED=OFF
-DLIBCXXABI_LIBDIR_SUFFIX=""
-DLIBCXXABI_LIBDIR_SUFFIX=''
BUILD_COMMAND ${EXEC} LTO=0 ninja -C <BINARY_DIR>
INSTALL_COMMAND ${EXEC} LTO=0 ninja -C <BINARY_DIR> install
COMMAND bash -c "cp ${MINGW_INSTALL_PREFIX}/lib/libc++.a ${MINGW_INSTALL_PREFIX}/lib/libstdc++.a"
Expand Down

0 comments on commit c867b25

Please sign in to comment.