From 21bf0729e042187e233de2741182d63d0be4d8fd Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Fri, 6 Dec 2024 22:28:14 -0800 Subject: [PATCH] Added comment/todo item --- ch32v20x-toolchain.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)