summaryrefslogtreecommitdiffstats
path: root/tools/driver
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-11-19 21:14:59 +0000
committerChris Bieneman <beanz@apple.com>2016-11-19 21:14:59 +0000
commitb1ff58de6ea8a246fa5306cd4228cc8d6141dab5 (patch)
tree5302a61bd34a6eb33d47d10cf2b9f1d4ce6f3de2 /tools/driver
parentaedeadddd4ccdc50dd68d7a65166e2635a7e03e2 (diff)
[CMake] Fixing clang standalone build
I broke this in r287406 and r287407. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r--tools/driver/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt
index fac789c832..49bde947f4 100644
--- a/tools/driver/CMakeLists.txt
+++ b/tools/driver/CMakeLists.txt
@@ -24,13 +24,17 @@ if(CLANG_PLUGIN_SUPPORT)
set(LLVM_NO_DEAD_STRIP 1)
endif()
+if(NOT CLANG_BUILT_STANDALONE)
+ set(tablegen_deps intrinsics_gen)
+endif()
+
add_clang_tool(clang
driver.cpp
cc1_main.cpp
cc1as_main.cpp
DEPENDS
- intrinsics_gen
+ ${tablegen_deps}
)
target_link_libraries(clang