aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/CMakeLists.txt
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-11-05 00:46:46 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-11-05 00:46:46 +0000
commit9cef8874ec046db3ba4784d4b2a2e608466f7d0c (patch)
tree0fbec7800b51200d3b02814b4dcaf51be2af455b /lib/Driver/CMakeLists.txt
parent22508f410b3d727d5c557af3304c0a1bad94999e (diff)
Fix MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/CMakeLists.txt')
-rw-r--r--lib/Driver/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Driver/CMakeLists.txt b/lib/Driver/CMakeLists.txt
index ee7ded94d4..ac63a2dfbb 100644
--- a/lib/Driver/CMakeLists.txt
+++ b/lib/Driver/CMakeLists.txt
@@ -21,5 +21,13 @@ add_clang_library(clangDriver
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)