This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 29a7640e2a9a00a179c84c36216f6e7a3ac6ff78 Author: xuxin19 <[email protected]> AuthorDate: Thu Sep 4 20:19:59 2025 +0800 cmake(bugfix):fix clang compiler asm lang unidentified flags clang: error: argument unused during compilation: '-Wa,-mthumb' [-Werror,-Wunused-command-line-argument] clang: error: argument unused during compilation: '-Wa,-mimplicit-it=always' [-Werror,-Wunused-command-line-argument] clang: error: argument unused during compilation: '-Wa,-mthumb' [-Werror,-Wunused-command-line-argument] clang: error: argument unused during compilation: '-Wa,-mimplicit-it=always' [-Werror,-Wunused-command-line-argument] Signed-off-by: xuxin19 <[email protected]> --- arch/arm/src/cmake/clang.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/cmake/clang.cmake b/arch/arm/src/cmake/clang.cmake index 87f12bdb04c..662bd795cdc 100644 --- a/arch/arm/src/cmake/clang.cmake +++ b/arch/arm/src/cmake/clang.cmake @@ -167,12 +167,12 @@ if(CONFIG_ARM_THUMB) # interpreted as Thumb code, either add a `.thumb' directive to the source or # pass the -mthumb option directly to the assembler by prefixing it with -Wa. - add_compile_options(-Wa,-mthumb) + add_compile_options($<$<COMPILE_LANGUAGE:ASM>:-Wa,-mthumb>) # Outputs an implicit IT block when there is a conditional instruction without # an enclosing IT block. - add_compile_options(-Wa,-mimplicit-it=always) + add_compile_options($<$<COMPILE_LANGUAGE:ASM>:-Wa,-mimplicit-it=always>) endif() # Optimization of unused sections
