Fixed up implimentation of object_gen_flags and arch flags to use CMAKE lists style.
Tested it by running both the units tests build and the hex build. Both currently build correctly without any issues.
This commit is contained in:
parent
69efaec385
commit
67d8022c83
1 changed files with 13 additions and 11 deletions
|
|
@ -98,23 +98,25 @@ add_compile_definitions(${MCU}=1)
|
|||
# General Flags
|
||||
#-------------------
|
||||
|
||||
set(OBJECT_GEN_FLAGS "\
|
||||
-g \
|
||||
-Os \
|
||||
-flto \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-fmessage-length=0 \
|
||||
-msmall-data-limit=8 ")
|
||||
|
||||
set(OBJECT_GEN_FLAGS "-g;\
|
||||
-Os;\
|
||||
-flto;\
|
||||
-ffunction-sections;\
|
||||
-fdata-sections;\
|
||||
-fmessage-length=0;\
|
||||
-msmall-data-limit=8")
|
||||
|
||||
#-------------------
|
||||
# CFLAGS for ARCH
|
||||
#-------------------
|
||||
|
||||
# For CH32V003(QingKeV2A)
|
||||
|
||||
set(C_FLAGS_ARCH "\
|
||||
-march=rv32ec \
|
||||
-mabi=ilp32e \
|
||||
-I${ALTCLIB} \
|
||||
-march=rv32ec;\
|
||||
-mabi=ilp32e;\
|
||||
-I${ALTCLIB};\
|
||||
-nostdlib")
|
||||
|
||||
#-------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue