[CMake] Prune CMAKE_CXX_FLAGS stuff in llvm_process_sources.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 28 Jan 2014 09:48:19 +0000 (09:48 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 28 Jan 2014 09:48:19 +0000 (09:48 +0000)
It is the final step to deprecate contextual CMAKE_CXX_FLAGS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200303 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMProcessSources.cmake

index ccc22a8..296ce92 100644 (file)
@@ -58,24 +58,6 @@ function(llvm_process_sources OUT_VAR)
     list(APPEND sources ${ARG_ADDITIONAL_HEADERS})
   endif()
 
-  # Set common compiler options:
-  if( NOT LLVM_REQUIRES_EH )
-    if( LLVM_COMPILER_IS_GCC_COMPATIBLE )
-      add_definitions( -fno-exceptions )
-    elseif( MSVC )
-      llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/EHsc" "/EHs-c-")
-      add_definitions( /D_HAS_EXCEPTIONS=0 )
-    endif()
-  endif()
-  if( NOT LLVM_REQUIRES_RTTI )
-    if( LLVM_COMPILER_IS_GCC_COMPATIBLE )
-      llvm_replace_compiler_option(CMAKE_CXX_FLAGS "-frtti" "-fno-rtti")
-    elseif( MSVC )
-      llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/GR" "/GR-")
-    endif()
-  endif()
-
-  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" PARENT_SCOPE )
   set( ${OUT_VAR} ${sources} PARENT_SCOPE )
 endfunction(llvm_process_sources)