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 0ddfde4 commit 03ca68dCopy full SHA for 03ca68d
clang/runtime/CMakeLists.txt
@@ -23,6 +23,13 @@ function(get_ext_project_build_command out_var target)
23
endfunction()
24
25
set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt)
26
+# Fallback to the external path, if the other one isn't available.
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})
31
+endif()
32
+
33
if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
34
if(CMAKE_VERSION VERSION_GREATER 3.3.20150708)
35
set(cmake_3_4_USES_TERMINAL_OPTIONS
0 commit comments