From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/lib/Driver/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 clang/lib/Driver/CMakeLists.txt (limited to 'clang/lib/Driver/CMakeLists.txt') diff --git a/clang/lib/Driver/CMakeLists.txt b/clang/lib/Driver/CMakeLists.txt new file mode 100644 index 0000000..a798e20 --- /dev/null +++ b/clang/lib/Driver/CMakeLists.txt @@ -0,0 +1,33 @@ +set(LLVM_USED_LIBS clangBasic clangAST clangParse) + +add_clang_library(clangDriver + Action.cpp + Arg.cpp + ArgList.cpp + CC1Options.cpp + CC1AsOptions.cpp + Compilation.cpp + Driver.cpp + DriverOptions.cpp + Job.cpp + Option.cpp + OptTable.cpp + Phases.cpp + Tool.cpp + ToolChain.cpp + ToolChains.cpp + WindowsToolChain.cpp + Tools.cpp + Types.cpp + ) + +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) -- cgit v1.2.3