more clang update

This commit is contained in:
hathach
2024-04-17 23:08:06 +07:00
parent 5ca68ec049
commit 824e39ddeb
12 changed files with 45 additions and 29 deletions

View File

@@ -67,15 +67,14 @@ function(add_board_target BOARD_TARGET)
-nostartfiles
--specs=nosys.specs --specs=nano.specs
)
elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_link_options(${BOARD_TARGET} PUBLIC
"LINKER:--script=${LD_FILE_GNU}"
)
elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR")
target_link_options(${BOARD_TARGET} PUBLIC
"LINKER:--config=${LD_FILE_IAR}"
)
elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_link_options(${BOARD_TARGET} PUBLIC
#-ldummyhost
"LINKER:--script=${LD_FILE_GNU}"
)
endif ()
endif ()
endfunction()