Skip to content

Commit

Permalink
Visual C++ does not support -ffunction-sections -fdata-sections.
Browse files Browse the repository at this point in the history
 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198203 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
yrnkrn committed Dec 30, 2013
1 parent 782b70f commit 6db0e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6db0e39

Please sign in to comment.