clangFrontend: Make intrinsics_gen optional for standalone build.

FIXME: intrinsics_gen may be exported from llvm.
llvm-svn: 271579
This commit is contained in:
NAKAMURA Takumi 2016-06-02 20:24:07 +00:00
parent d4c23fc76f
commit 47a3ec1921

View File

@ -7,6 +7,11 @@ set(LLVM_LINK_COMPONENTS
Support
)
set(optional_deps intrinsics_gen)
if (CLANG_BUILT_STANDALONE)
set(optional_deps)
endif()
add_clang_library(clangFrontend
ASTConsumers.cpp
ASTMerge.cpp
@ -44,7 +49,7 @@ add_clang_library(clangFrontend
DEPENDS
ClangDriverOptions
intrinsics_gen
${optional_deps}
LINK_LIBS
clangAST