Visual C++ does not support -ffunction-sections -fdata-sections.
authorYaron Keren <yaron.keren@gmail.com>
Mon, 30 Dec 2013 05:31:53 +0000 (05:31 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Mon, 30 Dec 2013 05:31:53 +0000 (05:31 +0000)
llvm-svn: 198203

llvm/cmake/modules/AddLLVM.cmake

index 6840cfc..b31aeee 100644 (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"