From fc163f9e43de3f7fdce35f5f35f5b52849350cfd Mon Sep 17 00:00:00 2001 From: Alaa Mahran Date: Sat, 11 Jan 2025 17:04:54 +0100 Subject: [PATCH] Tasking: Add support for ASM through the cctc compiler driver The Tasking ASM information module was added by commit 94df5b6ef1 (Tasking: Add support for several compiler toolsets, 2022-07-20, v3.25.0-rc1~133^2). However, it appears to have been left from pattern following and did not actually work with the Tasking assembler. Update it to work when running the assembler through the compiler driver `cctc`, which supports extensions `.asm` and `.src`. Fixes: #26425 --- Modules/Compiler/Tasking-ASM.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Modules/Compiler/Tasking-ASM.cmake b/Modules/Compiler/Tasking-ASM.cmake index 19bce191fc..eabc77bf0a 100644 --- a/Modules/Compiler/Tasking-ASM.cmake +++ b/Modules/Compiler/Tasking-ASM.cmake @@ -1,7 +1,6 @@ include(Compiler/Tasking) +__compiler_tasking(ASM) set(CMAKE_ASM_OUTPUT_EXTENSION ".o") -set(CMAKE_ASM_OUTPUT_EXTENSION_REPLACE 1) -set(CMAKE_ASM_COMPILE_OBJECT " -o ") -set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS S;s;asm;msa) +set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm;src)