mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00
BinUtils: Avoid llvm-mt because it is missing 'mt' features we use
Since commit cf82300a63
(BinUtils: Clarify search logic and make it more
consistent, 2021-05-27, v3.21.0-rc1~119^2~2) we correctly prefer the
more-specific name `llvm-mt` over `mt` when using Clang. However, the
`llvm-mt` tool does not yet support all the flags we need in the
implementation of `vs_link_{exe,dll}`. Prefer plain `mt` for now.
Fixes: #23305
This commit is contained in:
@@ -82,7 +82,8 @@ if(("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_SIMULATE_ID}" STREQUAL "xMSVC" AND
|
||||
if("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL "xClang")
|
||||
set(_CMAKE_NM_NAMES "llvm-nm" "nm")
|
||||
list(PREPEND _CMAKE_AR_NAMES "llvm-lib")
|
||||
list(PREPEND _CMAKE_MT_NAMES "llvm-mt")
|
||||
# llvm-mt does not support all flags we need in vs_link_exe
|
||||
# list(PREPEND _CMAKE_MT_NAMES "llvm-mt")
|
||||
list(PREPEND _CMAKE_LINKER_NAMES "lld-link")
|
||||
list(APPEND _CMAKE_TOOL_VARS NM)
|
||||
elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL "xIntel")
|
||||
|
Reference in New Issue
Block a user