From 1c6c05ee804473c405101260b4decdc5a69fd3b0 Mon Sep 17 00:00:00 2001 From: Jason Teng Date: Fri, 22 Dec 2023 10:02:47 -0800 Subject: [PATCH] Edit: removing -O flag and require cmake to set type --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50565ff..b9a39c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ set(EXECUTABLE ${CMAKE_PROJECT_NAME}) # USE .\getIncludeList.sh and .\getSourceList.sh to generate file list # Include List, Source List, and MCU Sepecific Setting +# Must Update these files in cmake/ when adding new source files include(STM32G431xx_HAL_PARA) include(SourceList) include(IncludeList) @@ -46,7 +47,6 @@ target_compile_options(${EXECUTABLE} PRIVATE -Wall -Wpedantic -Wno-unused-parameter - -Os # Optimize for size (that uses O2 ) ) # Linker options