diff --git a/ch32v20x-toolchain.cmake b/ch32v20x-toolchain.cmake index 0642c3d..bd06a44 100644 --- a/ch32v20x-toolchain.cmake +++ b/ch32v20x-toolchain.cmake @@ -53,6 +53,7 @@ set(CMAKE_SIZE ${TRIPPLE}-size) #riscv-none-embed-size --format=berkeley "CH32V203K8T6.elf" # Define compile options +# Should check to see if parts are all compiled using same options set(CMAKE_C_FLAGS "-march=${MARCH} -mabi=${MABI} -msmall-data-limit=8\ -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections\ -fdata-section -fno-common -Wunused -Wuninitialized -g\ @@ -60,8 +61,7 @@ set(CMAKE_C_FLAGS "-march=${MARCH} -mabi=${MABI} -msmall-data-limit=8\ --specs=nano.sepcs --specs=nosys.specs ") set(CMAKE_CXX_FLAGS "-march=${MARCH}") -set(CMAKE_EXE_LINKER_FLAGS_INIT "-mmcu=${AVR_MCU}") - +#set(CMAKE_EXE_LINKER_FLAGS_INIT "-mmcu=${AVR_MCU}") # Define the archiver and other tools set(CMAKE_AR ${TRIPPLE}-gcc-ar)