Follow-up for r217523: fix the dependencies for standalone compiler-rt build.

Patch by Kuba Brecka (kuba.brecka@gmail.com)

llvm-svn: 218444
This commit is contained in:
Alexander Potapenko 2014-09-25 09:30:05 +00:00
parent f5a57c9c24
commit bc4ce3a224
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ macro(clang_compiler_add_cxx_check)
add_custom_target(CompilerRTUnitTestCheckCxx
COMMAND bash -c "${CMD}"
COMMENT "Checking that just-built clang can find C++ headers..."
DEPENDS clang
VERBATIM)
if (TARGET clang)
ADD_DEPENDENCIES(CompilerRTUnitTestCheckCxx clang)
endif()
endif()
endmacro()