Michael J. Spencer | 0947621 | 2010-09-13 23:54:41 +0000 | [diff] [blame] | 1 | set(LLVM_USED_LIBS clangBasic clangAST clangParse) |
| 2 | |
Gabor Greif | aa033f9 | 2009-03-13 11:37:39 +0000 | [diff] [blame] | 3 | add_clang_library(clangDriver |
| 4 | Action.cpp |
| 5 | Arg.cpp |
| 6 | ArgList.cpp |
Daniel Dunbar | be6ef38 | 2009-11-19 07:19:04 +0000 | [diff] [blame] | 7 | CC1Options.cpp |
Daniel Dunbar | 2fcaa54 | 2010-05-20 17:49:16 +0000 | [diff] [blame] | 8 | CC1AsOptions.cpp |
Gabor Greif | aa033f9 | 2009-03-13 11:37:39 +0000 | [diff] [blame] | 9 | Compilation.cpp |
| 10 | Driver.cpp |
Daniel Dunbar | aa76737 | 2009-11-19 00:15:11 +0000 | [diff] [blame] | 11 | DriverOptions.cpp |
Gabor Greif | aa033f9 | 2009-03-13 11:37:39 +0000 | [diff] [blame] | 12 | HostInfo.cpp |
Mike Stump | 90a3707 | 2009-03-24 17:52:34 +0000 | [diff] [blame] | 13 | Job.cpp |
Gabor Greif | aa033f9 | 2009-03-13 11:37:39 +0000 | [diff] [blame] | 14 | Option.cpp |
Kovarththanan Rajaratnam | a6405f7 | 2010-03-22 18:16:06 +0000 | [diff] [blame] | 15 | OptTable.cpp |
Gabor Greif | aa033f9 | 2009-03-13 11:37:39 +0000 | [diff] [blame] | 16 | Phases.cpp |
Mike Stump | 90a3707 | 2009-03-24 17:52:34 +0000 | [diff] [blame] | 17 | Tool.cpp |
| 18 | ToolChain.cpp |
| 19 | ToolChains.cpp |
| 20 | Tools.cpp |
Gabor Greif | aa033f9 | 2009-03-13 11:37:39 +0000 | [diff] [blame] | 21 | Types.cpp |
| 22 | ) |
Douglas Gregor | e1d15c8 | 2009-06-18 15:05:47 +0000 | [diff] [blame] | 23 | |
Michael J. Spencer | 85da676 | 2011-11-05 00:46:46 +0000 | [diff] [blame] | 24 | IF(MSVC) |
| 25 | get_target_property(NON_ANSI_COMPILE_FLAGS clangDriver COMPILE_FLAGS) |
| 26 | string(REPLACE /Za |
| 27 | "" NON_ANSI_COMPILE_FLAGS |
| 28 | ${NON_ANSI_COMPILE_FLAGS}) |
| 29 | set_target_properties(clangDriver PROPERTIES COMPILE_FLAGS ${NON_ANSI_COMPILE_FLAGS}) |
| 30 | ENDIF(MSVC) |
| 31 | |
Michael J. Spencer | 0947621 | 2010-09-13 23:54:41 +0000 | [diff] [blame] | 32 | add_dependencies(clangDriver ClangAttrList ClangDiagnosticDriver |
| 33 | ClangDriverOptions ClangCC1Options ClangCC1AsOptions) |