llvm-project/clang/lib/Driver/CMakeLists.txt

35 lines
768 B
CMake
Raw Normal View History

set(LLVM_USED_LIBS clangBasic clangAST clangParse)
2009-03-13 19:37:39 +08:00
add_clang_library(clangDriver
Action.cpp
Arg.cpp
ArgList.cpp
CC1Options.cpp
CC1AsOptions.cpp
2009-03-13 19:37:39 +08:00
Compilation.cpp
Driver.cpp
DriverOptions.cpp
2009-03-13 19:37:39 +08:00
HostInfo.cpp
Job.cpp
2009-03-13 19:37:39 +08:00
Option.cpp
OptTable.cpp
2009-03-13 19:37:39 +08:00
Phases.cpp
Tool.cpp
ToolChain.cpp
ToolChains.cpp
WindowsToolChain.cpp
Tools.cpp
2009-03-13 19:37:39 +08:00
Types.cpp
)
2011-11-05 08:46:46 +08:00
IF(MSVC)
get_target_property(NON_ANSI_COMPILE_FLAGS clangDriver COMPILE_FLAGS)
string(REPLACE /Za
"" NON_ANSI_COMPILE_FLAGS
${NON_ANSI_COMPILE_FLAGS})
set_target_properties(clangDriver PROPERTIES COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS})
ENDIF(MSVC)
add_dependencies(clangDriver ClangAttrList ClangDiagnosticDriver
ClangDriverOptions ClangCC1Options ClangCC1AsOptions)