From 6db0e39d4025a4e71778cef4a0b60f00195a6e13 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Mon, 30 Dec 2013 05:31:53 +0000 Subject: Visual C++ does not support -ffunction-sections -fdata-sections. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198203 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/AddLLVM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/modules/AddLLVM.cmake') diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 6840cfca81..b31aeeeae1 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -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" -- cgit v1.2.3