summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CMakeLists.txt b/clang/lib/Frontend/CMakeLists.txt
index 5c19cea028b..18abecd2071 100644
--- a/clang/lib/Frontend/CMakeLists.txt
+++ b/clang/lib/Frontend/CMakeLists.txt
@@ -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
OpenPOWER on IntegriCloud