Visual C++ does not support -ffunction-sections -fdata-sections.

llvm-svn: 198203
This commit is contained in:
Yaron Keren 2013-12-30 05:31:53 +00:00
parent 4a8a28d5d8
commit a4b492b93c

View File

@ -77,7 +77,7 @@ function(add_llvm_symbol_exports target_name export_file)
endfunction(add_llvm_symbol_exports)
function(add_dead_strip target_name)
if(NOT CYGWIN AND NOT MINGW)
if(NOT CYGWIN AND NOT MINGW AND NOT MSVC)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections"