[CMake] Fixing clang standalone build

I broke this in r287406 and r287407.

llvm-svn: 287463
This commit is contained in:
Chris Bieneman 2016-11-19 21:14:59 +00:00
parent ffd3715d16
commit c6c0f583a2
2 changed files with 10 additions and 2 deletions

View 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

View 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