Skip to content

Commit

Permalink
build cmake: added size optimization
Browse files Browse the repository at this point in the history
Signed-off-by: John Sanpe <[email protected]>
  • Loading branch information
sanpeqf committed Feb 13, 2024
1 parent 0258963 commit a04dd72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ set(MCPU "-mcpu=cortex-m0plus -mthumb")
set(MFLOAT_ABI "-mfloat-abi=soft")
set(LINKER_SCRIPT ${PY32_LDS_PATH}/py32f030x6.ld)

set(CMAKE_C_FLAGS "${MCPU} ${MFLOAT_ABI} -std=gnu11 --specs=nano.specs")
set(CMAKE_C_FLAGS "${MCPU} ${MFLOAT_ABI} -Os -std=gnu11 --specs=nano.specs")
set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS} -x assembler-with-cpp")

set(CMAKE_EXE_LINKER_FLAGS
Expand Down

0 comments on commit a04dd72

Please sign in to comment.