]> granicus.if.org Git - clang/commitdiff
[CMake] Fixing clang standalone build
authorChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 21:14:59 +0000 (21:14 +0000)
committerChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 21:14:59 +0000 (21:14 +0000)
I broke this in r287406 and r287407.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287463 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-offload-bundler/CMakeLists.txt
tools/driver/CMakeLists.txt

index d585406a42c0eadd20d2fa5b49eed74e2b70c8c7..6161d08ae587c2910b083003d273e775260cddaf 100644 (file)
@@ -1,10 +1,14 @@
 set(LLVM_LINK_COMPONENTS BitWriter Core Object Support)
 
+if(NOT CLANG_BUILT_STANDALONE)
+  set(tablegen_deps intrinsics_gen)
+endif()
+
 add_clang_executable(clang-offload-bundler
   ClangOffloadBundler.cpp
   
   DEPENDS
-  intrinsics_gen
+  ${tablegen_deps}
   )
 
 set(CLANG_OFFLOAD_BUNDLER_LIB_DEPS
index fac789c832464aa1334ee135a679008e4891d186..49bde947f4c644796e73239791d04f1611e8a2db 100644 (file)
@@ -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