From 69efaec3854cd7e2f635696cf14551e0a79cd030 Mon Sep 17 00:00:00 2001 From: jake-g00dwin Date: Sun, 22 Feb 2026 19:31:18 -0800 Subject: [PATCH] refactored the target compile options to use the variables from the toolchain file. --- src/RegEdit/CMakeLists.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/RegEdit/CMakeLists.txt b/src/RegEdit/CMakeLists.txt index 5bf9034..2b14519 100644 --- a/src/RegEdit/CMakeLists.txt +++ b/src/RegEdit/CMakeLists.txt @@ -13,16 +13,10 @@ if(NOT UNIT_TESTING) ${CMAKE_SOURCE_DIR}/inc/ ) + target_compile_options(RegEdit PUBLIC - -g - -Os - -flto - -ffunction-sections - -fdata-sections - -fmessage-length=0 - -msmall-data-limit=8 - -march=rv32ec - -mabi=ilp32e + ${OBJECT_GEN_FLAGS} + ${C_FLAGS_ARCH} ) else()