summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2013-12-30 05:31:53 +0000
committerYaron Keren <yaron.keren@gmail.com>2013-12-30 05:31:53 +0000
commit6db0e39d4025a4e71778cef4a0b60f00195a6e13 (patch)
tree50ab1e6784cb05fc6fe89243fc1ae9743194a247 /cmake
parent782b70f4b3f1ba68ec26ed99a1a5c095adf80298 (diff)
downloadllvm-6db0e39d4025a4e71778cef4a0b60f00195a6e13.tar.gz
llvm-6db0e39d4025a4e71778cef4a0b60f00195a6e13.tar.bz2
llvm-6db0e39d4025a4e71778cef4a0b60f00195a6e13.tar.xz
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
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
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"