diff options
| author | hathach <[email protected]> | 2025-10-23 16:59:04 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-23 18:00:15 +0700 |
| commit | 7c95d9bed5b39730c449e321cc72c4e690b17a6c (patch) | |
| tree | c1a3d0c815418b618ee1c6634d425e1c339d1702 /hw/bsp/ch32v10x | |
| parent | bde449997e65ee866fa9e20c15bac0bd45efccf4 (diff) | |
force clang asm with -x assembler-with-cpp
Diffstat (limited to 'hw/bsp/ch32v10x')
| -rw-r--r-- | hw/bsp/ch32v10x/family.cmake | 2 |
1 files changed, 1 insertions, 1 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() |
