From a08e7bc74b5635995fc50009f240dd3feb1999e2 Mon Sep 17 00:00:00 2001 From: Francois Pichet Date: Wed, 6 Jun 2012 12:00:10 +0000 Subject: Zap the /Za compiler switch from MSVC projects, the option is considered harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed. Only 1 minor code change was necessary: can't use cdecl as variable name anymore. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158063 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/Driver') diff --git a/lib/Driver/CMakeLists.txt b/lib/Driver/CMakeLists.txt index c7850656e3..a16b2ce69f 100644 --- a/lib/Driver/CMakeLists.txt +++ b/lib/Driver/CMakeLists.txt @@ -20,13 +20,6 @@ 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 ClangCC1AsOptions) -- cgit v1.2.1