summaryrefslogtreecommitdiff
path: root/Modules/CMakeFindBinUtils.cmake
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2022-12-27 17:20:04 +0900
committerJinWang An <jinwang.an@samsung.com>2022-12-27 17:20:04 +0900
commitee94ded5e1f6585451d7376f711dc12cb3d92a01 (patch)
tree4f02ee3ee8746576052abd0ec3a746631dfa96e2 /Modules/CMakeFindBinUtils.cmake
parente502e056ca86a2eea429e09cd2f5d9c14105ee90 (diff)
downloadcmake-ee94ded5e1f6585451d7376f711dc12cb3d92a01.tar.gz
cmake-ee94ded5e1f6585451d7376f711dc12cb3d92a01.tar.bz2
cmake-ee94ded5e1f6585451d7376f711dc12cb3d92a01.zip
Imported Upstream version 3.22.0upstream/3.22.0
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r--Modules/CMakeFindBinUtils.cmake15
1 files changed, 3 insertions, 12 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index 84fde49ce..6c81754d3 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -82,8 +82,7 @@ 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")
- # llvm-mt does not support all flags we need in vs_link_exe
- # list(PREPEND _CMAKE_MT_NAMES "llvm-mt")
+ 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")
@@ -118,7 +117,7 @@ elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^xIAR$")
endfunction()
__resolve_IAR_hints("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER}" _CMAKE_TOOLCHAIN_LOCATION)
- set(_CMAKE_IAR_ITOOLS "ARM" "RX" "RH850" "RL78" "RISCV" "STM8")
+ set(_CMAKE_IAR_ITOOLS "ARM" "RX" "RH850" "RL78" "RISCV" "RISC-V" "STM8")
set(_CMAKE_IAR_XTOOLS "AVR" "MSP430" "V850" "8051")
if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ARCHITECTURE_ID}" IN_LIST _CMAKE_IAR_ITOOLS)
@@ -173,15 +172,7 @@ else()
else()
list(PREPEND _CMAKE_LINKER_NAMES "ld.lld")
endif()
- if(APPLE)
- # llvm-ar does not generate a symbol table that the Apple ld64 linker accepts.
- # FIXME(#23333): We still need to consider 'llvm-ar' as a fallback because
- # the 'APPLE' definition may be based on the host in this context, and a
- # cross-compiling toolchain may not have 'ar'.
- list(APPEND _CMAKE_AR_NAMES "llvm-ar")
- else()
- list(PREPEND _CMAKE_AR_NAMES "llvm-ar")
- endif()
+ list(PREPEND _CMAKE_AR_NAMES "llvm-ar")
list(PREPEND _CMAKE_RANLIB_NAMES "llvm-ranlib")
if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_VERSION}" VERSION_GREATER_EQUAL 11)
# llvm-strip versions prior to 11 require additional flags we do not yet add.