From bc5f93d7aee7290d4b19458d1ea40a0b69ea4d30 Mon Sep 17 00:00:00 2001 From: jake-g00dwin Date: Sun, 22 Feb 2026 19:12:37 -0800 Subject: [PATCH] Updated regedit to use the compile options needed for ch32v003 --- src/RegEdit/CMakeLists.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/RegEdit/CMakeLists.txt b/src/RegEdit/CMakeLists.txt index c4e0e50..5bf9034 100644 --- a/src/RegEdit/CMakeLists.txt +++ b/src/RegEdit/CMakeLists.txt @@ -12,9 +12,19 @@ if(NOT UNIT_TESTING) ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_SOURCE_DIR}/inc/ ) - #target_link_libraries(RegEdit - # - #) + + target_compile_options(RegEdit PUBLIC + -g + -Os + -flto + -ffunction-sections + -fdata-sections + -fmessage-length=0 + -msmall-data-limit=8 + -march=rv32ec + -mabi=ilp32e + ) + else() target_include_directories(RegEdit PUBLIC ${CMAKE_CURRENT_LIST_DIR}