[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
This commit is contained in:
Petr Hosek 2019-02-13 06:49:47 +00:00
parent f989e58598
commit 38c723b004
1 changed files with 1 additions and 1 deletions

View File

@ -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()