summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-23 16:59:04 +0700
committerhathach <[email protected]>2025-10-23 18:00:15 +0700
commit7c95d9bed5b39730c449e321cc72c4e690b17a6c (patch)
treec1a3d0c815418b618ee1c6634d425e1c339d1702 /hw
parentbde449997e65ee866fa9e20c15bac0bd45efccf4 (diff)
force clang asm with -x assembler-with-cpp
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/ch32v10x/family.cmake2
-rw-r--r--hw/bsp/lpc11/family.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/bsp/ch32v10x/family.cmake b/hw/bsp/ch32v10x/family.cmake
index 1c9d41740..843b7f9d3 100644
--- a/hw/bsp/ch32v10x/family.cmake
+++ b/hw/bsp/ch32v10x/family.cmake
@@ -48,7 +48,7 @@ function(family_add_board BOARD_TARGET)
update_board(${BOARD_TARGET})
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
- target_compile_options(${TARGET} PUBLIC -mcmodel=medany)
+ target_compile_options(${BOARD_TARGET} PUBLIC -mcmodel=medany)
endif()
endfunction()
diff --git a/hw/bsp/lpc11/family.cmake b/hw/bsp/lpc11/family.cmake
index 42578d403..fceafcf61 100644
--- a/hw/bsp/lpc11/family.cmake
+++ b/hw/bsp/lpc11/family.cmake
@@ -79,7 +79,7 @@ function(family_configure_example TARGET RTOS)
--specs=nosys.specs --specs=nano.specs
)
elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang")
- target_link_options(${BOARD_TARGET} PUBLIC
+ target_link_options(${TARGET} PUBLIC
"LINKER:--script=${LD_FILE_GNU}"
)
elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR")