We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46c525 commit e5bee80Copy full SHA for e5bee80
clang/runtime/CMakeLists.txt
@@ -27,7 +27,10 @@ set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt)
27
# This is the same behavior (try "internal", then check the LLVM_EXTERNAL_...
28
# variable) as in add_llvm_external_project
29
if(NOT EXISTS ${COMPILER_RT_SRC_ROOT})
30
- set(COMPILER_RT_SRC_ROOT ${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR})
+ # We don't want to set it if LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR is ""
31
+ if(${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR})
32
+ set(COMPILER_RT_SRC_ROOT ${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR})
33
+ endif()
34
endif()
35
36
if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
0 commit comments