[llvm] r200303 - [CMake] Prune CMAKE_CXX_FLAGS stuff in llvm_process_sources.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Jan 28 01:48:19 PST 2014
Author: chapuni
Date: Tue Jan 28 03:48:19 2014
New Revision: 200303
URL: http://llvm.org/viewvc/llvm-project?rev=200303&view=rev
Log:
[CMake] Prune CMAKE_CXX_FLAGS stuff in llvm_process_sources.
It is the final step to deprecate contextual CMAKE_CXX_FLAGS.
Modified:
llvm/trunk/cmake/modules/LLVMProcessSources.cmake
Modified: llvm/trunk/cmake/modules/LLVMProcessSources.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMProcessSources.cmake?rev=200303&r1=200302&r2=200303&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMProcessSources.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMProcessSources.cmake Tue Jan 28 03:48:19 2014
@@ -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)
More information about the llvm-commits
mailing list