summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-01-05 00:37:45 +0000
committerNico Weber <nicolasweber@gmx.de>2014-01-05 00:37:45 +0000
commit00e9cfeaf73330ed21404c9a11d104459488eb91 (patch)
treeca3c333f625a2d96e6198689546c705f7e70fa35 /cmake
parent395f7c2505c323459c40d2dd1dfa8c913211767b (diff)
downloadllvm-00e9cfeaf73330ed21404c9a11d104459488eb91.tar.gz
llvm-00e9cfeaf73330ed21404c9a11d104459488eb91.tar.bz2
llvm-00e9cfeaf73330ed21404c9a11d104459488eb91.tar.xz
Add a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index da4873b1fe..cf1986a81b 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -77,6 +77,9 @@ function(add_llvm_symbol_exports target_name export_file)
endfunction(add_llvm_symbol_exports)
function(add_dead_strip target_name)
+ # FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF?
+ # But MinSizeRel seems to add that automatically, so maybe disable these
+ # flags instead if LLVM_NO_DEAD_STRIP is set.
if(NOT CYGWIN AND NOT MINGW AND NOT MSVC)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(CMAKE_CXX_FLAGS