From 3d1ed986e23b13bd09625c4347cb65b48fc1df52 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Thu, 10 Sep 2020 09:50:15 -0400 Subject: ARMClang: Fix link line generation after addition of armlink support Revise logic added by commit 73fb6ac82b (ARMClang: Add support for armlink, 2020-06-02, v3.18.0-rc1~27^2). Fixes: #21154 --- Modules/Compiler/ARMClang.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Compiler/ARMClang.cmake b/Modules/Compiler/ARMClang.cmake index 01ce91d..f100af8 100644 --- a/Modules/Compiler/ARMClang.cmake +++ b/Modules/Compiler/ARMClang.cmake @@ -115,11 +115,12 @@ macro(__compiler_armclang lang) endif() if(__CMAKE_ARMClang_USING_armlink) + unset(CMAKE_${lang}_LINKER_WRAPPER_FLAG) set(__CMAKE_ARMClang_USING_armlink_WRAPPER "") else() - set(__CMAKE_ARMClang_USING_armlink_WRAPPER ${CMAKE_${lang}_LINKER_WRAPPER_FLAG}) + set(__CMAKE_ARMClang_USING_armlink_WRAPPER "-Xlinker") endif() - set(CMAKE_${lang}_LINK_EXECUTABLE " -o ${__CMAKE_ARMClang_USING_armlink_WRAPPER} --list .map") + set(CMAKE_${lang}_LINK_EXECUTABLE " -o ${__CMAKE_ARMClang_USING_armlink_WRAPPER} --list=.map") set(CMAKE_${lang}_CREATE_STATIC_LIBRARY " --create -cr ") set(CMAKE_${lang}_ARCHIVE_CREATE " --create -cr ") set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "${__CMAKE_ARMClang_USING_armlink_WRAPPER} --via=") -- cgit v0.12