clang build board test with h743

This commit is contained in:
hathach
2024-04-17 13:00:07 +07:00
parent 9f0e4c2889
commit 96f7ca02bf
5 changed files with 54 additions and 3 deletions

View File

@@ -37,7 +37,16 @@ elseif (TOOLCHAIN STREQUAL "iar")
--diag_suppress=Li065
)
elseif (TOOLCHAIN STREQUAL "clang")
message(FATAL_ERROR "Clang not supported")
list(APPEND TOOLCHAIN_COMMON_FLAGS
-fdata-sections
-ffunction-sections
-fno-strict-aliasing
)
list(APPEND TOOLCHAIN_EXE_LINKER_FLAGS
-Wl,--print-memory-usage
-Wl,--gc-sections
-Wl,--cref
)
endif ()
# join the toolchain flags into a single string