Skip to content

Commit e5bee80

Browse files
committed
[cmake] Try to appease the buildbots.
llvm-svn: 262340
1 parent f46c525 commit e5bee80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/runtime/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt)
2727
# This is the same behavior (try "internal", then check the LLVM_EXTERNAL_...
2828
# variable) as in add_llvm_external_project
2929
if(NOT EXISTS ${COMPILER_RT_SRC_ROOT})
30-
set(COMPILER_RT_SRC_ROOT ${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR})
30+
# 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()
3134
endif()
3235

3336
if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)

0 commit comments

Comments
 (0)