Add CMake dependencies so that LLVM_USED_LIBS order doesn't matter.

I also sorted the tools/driver dependencies since their order no
longer matters.

llvm-svn: 125417
This commit is contained in:
Jeffrey Yasskin 2011-02-11 23:46:38 +00:00
parent 722d4e4aa0
commit c498878e6d
8 changed files with 31 additions and 14 deletions

View File

@ -1,3 +1,5 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_USED_LIBS clangBasic)
add_clang_library(clangAST

View File

@ -1,3 +1,5 @@
set(LLVM_LINK_COMPONENTS mc)
add_clang_library(clangBasic
Builtins.cpp
ConvertUTF.c

View File

@ -1,3 +1,10 @@
set(LLVM_LINK_COMPONENTS
asmparser
bitreader
bitwriter
ipo
)
set(LLVM_USED_LIBS clangBasic clangAST clangFrontend)
add_clang_library(clangCodeGen

View File

@ -1,10 +1,11 @@
set( LLVM_USED_LIBS
clangAST
clangBasic
clangDriver
clangLex
clangParse
clangSema
clangAST
clangLex
clangBasic
clangSerialization
)
add_clang_library(clangFrontend

View File

@ -1,5 +1,7 @@
# TODO: Add -maltivec when ARCH is PowerPC.
set(LLVM_LINK_COMPONENTS support)
set(LLVM_USED_LIBS clangBasic)
add_clang_library(clangLex

View File

@ -1,4 +1,5 @@
set(LLVM_USED_LIBS clangFrontend)
# TODO: This must need some dependencies, but it builds fine without them.
#set(LLVM_USED_LIBS ???)
add_clang_library(clangSerialization
GeneratePCH.cpp

View File

@ -1,3 +1,5 @@
set(LLVM_LINK_COMPONENTS support)
set(LLVM_USED_LIBS clangBasic clangLex clangAST clangFrontend clangRewrite)
add_clang_library(clangStaticAnalyzerCore

View File

@ -1,19 +1,19 @@
set( LLVM_USED_LIBS
clangFrontendTool
clangFrontend
clangDriver
clangSerialization
clangAST
clangAnalysis
clangBasic
clangCodeGen
clangDriver
clangFrontend
clangFrontendTool
clangIndex
clangLex
clangParse
clangRewrite
clangSema
clangSerialization
clangStaticAnalyzerCheckers
clangStaticAnalyzerCore
clangAnalysis
clangIndex
clangRewrite
clangAST
clangLex
clangBasic
)
set( LLVM_LINK_COMPONENTS