llvm.org GIT mirror llvm / 7d5c4cb
[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 NAKAMURA Takumi 6 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
398398 endif()
399399 endif()
400400
401 if(CYGWIN OR MINGW)
402 # Prune --out-implib from executables. It doesn't make sense even
403 # with --export-all-symbols.
404 string(REGEX REPLACE "-Wl,--out-implib,[^ ]+ " " "
405 CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE}")
406 string(REGEX REPLACE "-Wl,--out-implib,[^ ]+ " " "
407 CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE}")
408 endif()
409
401410 if(MSVC)
402411 # Remove flags here, for exceptions and RTTI.
403412 # Each target property or source property should be responsible to control