From 38c723b0049fbdd2d04aca115ef064522fdb8ce6 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 13 Feb 2019 06:49:47 +0000 Subject: [PATCH] [CMake] Avoid clang dependencies in the runtimes build Dependencies like clang aren't available in the runtimes build, this was accidentally omitted in D57992. llvm-svn: 353914 --- compiler-rt/cmake/Modules/CompilerRTCompile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/cmake/Modules/CompilerRTCompile.cmake b/compiler-rt/cmake/Modules/CompilerRTCompile.cmake index 556ee78969ca..07b589beb2d1 100644 --- a/compiler-rt/cmake/Modules/CompilerRTCompile.cmake +++ b/compiler-rt/cmake/Modules/CompilerRTCompile.cmake @@ -136,7 +136,7 @@ macro(clang_compiler_add_cxx_check) COMMAND bash -c "${CMD}" COMMENT "Checking that just-built clang can find C++ headers..." VERBATIM) - if (NOT COMPILER_RT_STANDALONE_BUILD) + if (NOT COMPILER_RT_STANDALONE_BUILD AND NOT RUNTIMES_BUILD) ADD_DEPENDENCIES(CompilerRTUnitTestCheckCxx clang) endif() endif()