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/
|
||||
)
|
||||
|
||||
|
||||
target_compile_options(RegEdit PUBLIC
|
||||
-g
|
||||
-Os
|
||||
-flto
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-fmessage-length=0
|
||||
-msmall-data-limit=8
|
||||
-march=rv32ec
|
||||
-mabi=ilp32e
|
||||
${OBJECT_GEN_FLAGS}
|
||||
${C_FLAGS_ARCH}
|
||||
)
|
||||
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue