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:
Jake Goodwin 2026-02-22 19:32:26 -08:00
parent 69efaec385
commit 67d8022c83

View file

@ -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")
#-------------------