summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-03-16 13:51:24 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-03-16 13:51:24 +0000
commit7d5c4cbc7153ace4eac75cc8aad5c4e170cf54f6 (patch)
tree52fc534f77b75b4693897d93247910bd2950050d /cmake
parent72ca6ef7f825dfe77976eee973beb0badb283dae (diff)
downloadllvm-7d5c4cbc7153ace4eac75cc8aad5c4e170cf54f6.tar.gz
llvm-7d5c4cbc7153ace4eac75cc8aad5c4e170cf54f6.tar.bz2
llvm-7d5c4cbc7153ace4eac75cc8aad5c4e170cf54f6.tar.xz
[CMake][cygming] Disable --out-implib from executables.
It doesn't make sense even with --export-all-symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/HandleLLVMOptions.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index 7e68bfbe96..cd9773beb9 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -399,6 +399,15 @@ if(NOT CYGWIN AND NOT WIN32)
endif()
endif()
+if(CYGWIN OR MINGW)
+ # Prune --out-implib from executables. It doesn't make sense even
+ # with --export-all-symbols.
+ string(REGEX REPLACE "-Wl,--out-implib,[^ ]+ " " "
+ CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE}")
+ string(REGEX REPLACE "-Wl,--out-implib,[^ ]+ " " "
+ CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE}")
+endif()
+
if(MSVC)
# Remove flags here, for exceptions and RTTI.
# Each target property or source property should be responsible to control