Skip to content

Commit

Permalink
Add note about LTO to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
kripton committed Nov 17, 2021
1 parent f5f1163 commit 0c8f1a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ pico_sdk_init()
## See below. However, needs to be set here in order to be effective
add_compile_options(-Os)

## I'd like to use LTO but it doesn't yet work
## https://github.com/raspberrypi/pico-sdk/issues/97
#add_compile_options(-flto -fno-fat-lto-objects -flto-partition=1to1 -fuse-ld=bfd -v)
#add_compile_options(-flto)
#add_link_options(-Wl,-v -v -t -t)

## Include the CMakeLists-files of (non-pico-sdk)-libraries we will be using
include(../lib/heatshrink/CMakeLists.txt)
include(../lib/zlib/interfaceLibForPicoSDK.cmake)
Expand Down

0 comments on commit 0c8f1a0

Please sign in to comment.