Skip to content

Commit 43aad9c

Browse files
committed
Fix most of LLVM's tests with LLVM_ENABLE_PIC=OFF
Lots of tests rely on llvm-lto being present, but LLVM_ENABLE_PIC=OFF currently disables building that executable. There's no reason for not building llvm-lto with LLVM_ENABLE_PIC=OFF so just build it. r191042 moved it into a "if (!WIN)" block at the time, and then 211852 made that "if(NOT CYGWIN AND LLVM_ENABLE_PIC)" -- but that's only needed for LTO (the ld64 plugin), not for the llvm-lto binary. Differential Revision: https://reviews.llvm.org/D56801 llvm-svn: 351374
1 parent e5653be commit 43aad9c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/tools/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ endif()
2727

2828
if(CYGWIN OR NOT LLVM_ENABLE_PIC)
2929
set(LLVM_TOOL_LTO_BUILD Off)
30-
set(LLVM_TOOL_LLVM_LTO_BUILD Off)
3130
endif()
3231

3332
# Add LTO, llvm-ar, llvm-config, and llvm-profdata before clang, ExternalProject

0 commit comments

Comments
 (0)