diff options
author | Filipe Cabecinhas <me@filcab.net> | 2016-03-01 15:07:19 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2016-03-01 15:07:19 +0000 |
commit | e5bee8080213ea20fcc2ad2f9a67120f044ab014 (patch) | |
tree | 4411c55a65b3f22735f03850507f821c9a3c2ff2 /clang/runtime | |
parent | f46c5259bdeb620a2b9b5144db9b5c52a5be4b66 (diff) | |
download | llvm-e5bee8080213ea20fcc2ad2f9a67120f044ab014.tar.gz |
[cmake] Try to appease the buildbots.
llvm-svn: 262340
Diffstat (limited to 'clang/runtime')
-rw-r--r-- | clang/runtime/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/runtime/CMakeLists.txt b/clang/runtime/CMakeLists.txt index 26d6c1233cb5..99298e11b1d7 100644 --- a/clang/runtime/CMakeLists.txt +++ b/clang/runtime/CMakeLists.txt @@ -27,7 +27,10 @@ set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt) # This is the same behavior (try "internal", then check the LLVM_EXTERNAL_... # variable) as in add_llvm_external_project if(NOT EXISTS ${COMPILER_RT_SRC_ROOT}) - 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 "" + if(${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR}) + set(COMPILER_RT_SRC_ROOT ${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR}) + endif() endif() if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) |