refactored the target compile options to use the variables from the toolchain file.
This commit is contained in:
parent
bc5f93d7ae
commit
69efaec385
1 changed files with 3 additions and 9 deletions
|
|
@ -13,16 +13,10 @@ if(NOT UNIT_TESTING)
|
||||||
${CMAKE_SOURCE_DIR}/inc/
|
${CMAKE_SOURCE_DIR}/inc/
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
target_compile_options(RegEdit PUBLIC
|
target_compile_options(RegEdit PUBLIC
|
||||||
-g
|
${OBJECT_GEN_FLAGS}
|
||||||
-Os
|
${C_FLAGS_ARCH}
|
||||||
-flto
|
|
||||||
-ffunction-sections
|
|
||||||
-fdata-sections
|
|
||||||
-fmessage-length=0
|
|
||||||
-msmall-data-limit=8
|
|
||||||
-march=rv32ec
|
|
||||||
-mabi=ilp32e
|
|
||||||
)
|
)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue