Skip to content

Commit ab2c1ff

Browse files
Changed Release optimization build option -O2 to -Os
1 parent 0015be6 commit ab2c1ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pico_generate_pio_header(Pico_TM1637 ${CMAKE_CURRENT_LIST_DIR}/../TM1637.pio)
2626

2727
# Add program info
2828
pico_set_program_name(Pico_TM1637 "TODO")
29-
pico_set_program_version(Pico_TM1637 "1.0.0")
29+
pico_set_program_version(Pico_TM1637 "1.0.1")
3030
pico_set_program_url(Pico_TM1637 "https://github.com/cristiancristea00/Pico-TM1637")
3131
pico_set_program_description(Pico_TM1637 "Copyright (c) 2021 Cristian Cristea")
3232

@@ -49,5 +49,5 @@ set(CMAKE_CXX_FLAGS_DEBUG "-pipe -g -O0 -Wfatal-errors -Wpedantic -Wall -Wextra
4949
set(CMAKE_C_FLAGS_DEBUG "-pipe -g -O0 -Wfatal-errors -Wpedantic -Wall -Wextra -Wconversion -Wshadow=local -Wdouble-promotion -Wformat=2 -Wformat-overflow=2 -Wformat-nonliteral -Wformat-security -Wformat-truncation=2 -Wnull-dereference -Wimplicit-fallthrough=3 -Wshift-overflow=2 -Wswitch-default -Wunused-parameter -Wunused-const-variable=2 -Wstrict-overflow=4 -Wstringop-overflow=3 -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wmissing-noreturn -Wsuggest-attribute=malloc -Wsuggest-attribute=format -Wmissing-format-attribute -Wsuggest-attribute=cold -Walloc-zero -Walloca -Wattribute-alias=2 -Wduplicated-branches -Wcast-qual")
5050

5151
# Set Release build compiler arguments
52-
set(CMAKE_CXX_FLAGS_RELEASE "-pipe -O2 -fno-builtin")
53-
set(CMAKE_C_FLAGS_RELEASE "-pipe -O2 -fno-builtin")
52+
set(CMAKE_CXX_FLAGS_RELEASE "-pipe -Os -fno-builtin")
53+
set(CMAKE_C_FLAGS_RELEASE "-pipe -Os -fno-builtin")

0 commit comments

Comments
 (0)