Skip to content

Commit

Permalink
pico: enable function/data sections for BlitEngine
Browse files Browse the repository at this point in the history
This is specified in pico_standard_link for the executables. Reduces the size of the logo example by ~17k (as an example)
  • Loading branch information
Daft-Freak committed Mar 5, 2023
1 parent ace2e6c commit 12bc110
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 32blit-pico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ set(PICO_SDK_VERSION_REVISION ${PICO_SDK_VERSION_REVISION} PARENT_SCOPE)
# make sure BlitEngine is built with the right exception flags
target_link_libraries(BlitEngine pico_cxx_options)

# also enable function/data sectons
target_compile_options(BlitEngine PRIVATE -ffunction-sections -fdata-sections)

# driver helper
# can override driver choice by pre-setting BLIT_x_DRIVER
function(blit_driver DRV NAME)
Expand Down

0 comments on commit 12bc110

Please sign in to comment.