Skip to content

Commit

Permalink
Edit: removing -O flag and require cmake to set type
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonyang-ee committed Dec 22, 2023
1 parent f46d36e commit 1c6c05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -46,7 +47,6 @@ target_compile_options(${EXECUTABLE} PRIVATE
-Wall
-Wpedantic
-Wno-unused-parameter
-Os # Optimize for size (that uses O2 )
)

# Linker options
Expand Down

0 comments on commit 1c6c05e

Please sign in to comment.