[llvm] r198203 - Visual C++ does not support -ffunction-sections -fdata-sections.

Yaron Keren yaron.keren at gmail.com
Sun Dec 29 21:31:53 PST 2013


Author: yrnkrn
Date: Sun Dec 29 23:31:53 2013
New Revision: 198203

URL: http://llvm.org/viewvc/llvm-project?rev=198203&view=rev
Log:
 Visual C++ does not support -ffunction-sections -fdata-sections.
 

Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=198203&r1=198202&r2=198203&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sun Dec 29 23:31:53 2013
@@ -77,7 +77,7 @@ function(add_llvm_symbol_exports target_
 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"





More information about the llvm-commits mailing list