diff options
author | Brad King <brad.king@kitware.com> | 2022-03-08 16:44:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-03-08 16:48:30 (GMT) |
commit | 73d0d4e4b5dd937dcc913a94a6ebac3085a01896 (patch) | |
tree | f2056ffe1eee89aaa09eaab0638c46ba015c9d18 /Modules | |
parent | 78ae759e01a736d212c97d4ecc00215648513329 (diff) | |
download | CMake-73d0d4e4b5dd937dcc913a94a6ebac3085a01896.zip CMake-73d0d4e4b5dd937dcc913a94a6ebac3085a01896.tar.gz CMake-73d0d4e4b5dd937dcc913a94a6ebac3085a01896.tar.bz2 |
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
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeFindBinUtils.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index ba7c405..01cb161 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -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") |