[CMake] Fix standalone build after LLVM exports utility targets
authorStefan Granitz <stefan.graenitz@gmail.com>
Fri, 11 Jan 2019 21:59:58 +0000 (21:59 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Fri, 11 Jan 2019 21:59:58 +0000 (21:59 +0000)
LLVM started exporting targets for utilites with https://reviews.llvm.org/rL350959, which broke compiler-rt standalone builds because it was used to define FileCheck manually.
Changed this, so FileCheck gets imported now.

llvm-svn: 350973

compiler-rt/test/CMakeLists.txt

index 554ba5f..2e239d5 100644 (file)
@@ -15,8 +15,6 @@ if(COMPILER_RT_BUILD_PROFILE AND COMPILER_RT_HAS_PROFILE)
 endif()
 
 if(COMPILER_RT_STANDALONE_BUILD)
-  add_executable(FileCheck IMPORTED GLOBAL)
-  set_property(TARGET FileCheck PROPERTY IMPORTED_LOCATION ${LLVM_TOOLS_BINARY_DIR}/FileCheck)
   list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS FileCheck)
 endif()