Skip to content

Commit

Permalink
build-compiler-rt: Stop setting CMAKE_*_COMPILER_WORKS
Browse files Browse the repository at this point in the history
Since 8368e4d54c459fe173d76277f17c632478e91add in llvm-project (pushed
on March 11 2021), the lib/builtins CMakeLists.txt sets
CMAKE_TRY_COMPILE_TARGET_TYPE to STATIC_LIBRARY, which makes the
compiler tests pass before the toolchain is fully functional, by not
doing linking tests.
  • Loading branch information
mstorsjo committed Aug 9, 2021
1 parent 98583d7 commit 056cb22
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build-compiler-rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ for arch in $ARCHS; do
-DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_AR="$PREFIX/bin/llvm-ar" \
-DCMAKE_RANLIB="$PREFIX/bin/llvm-ranlib" \
-DCMAKE_C_COMPILER_WORKS=1 \
-DCMAKE_CXX_COMPILER_WORKS=1 \
-DCMAKE_C_COMPILER_TARGET=$arch-windows-gnu \
-DCOMPILER_RT_DEFAULT_TARGET_ONLY=TRUE \
-DCOMPILER_RT_USE_BUILTINS_LIBRARY=TRUE \
Expand Down

0 comments on commit 056cb22

Please sign in to comment.