diff --git a/riscv32-toolchain.cmake b/riscv32-toolchain.cmake index 9a6b339..d37d0cc 100644 --- a/riscv32-toolchain.cmake +++ b/riscv32-toolchain.cmake @@ -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") #-------------------