Skip to content

Commit 2021c62

Browse files
committed
fix pre-commit, also skip lto for rp2040
1 parent 3678a25 commit 2021c62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/host/bare_api/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ target_include_directories(${PROJECT} PUBLIC
2424

2525
# Configure compilation flags and libraries for the example without RTOS.
2626
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
27-
family_configure_host_example(${PROJECT} noos)
27+
family_configure_host_example(${PROJECT} noos)

hw/bsp/family_support.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ if (NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/${FAMILY}/family.cmake)
3636
message(FATAL_ERROR "Family '${FAMILY}' is not known/supported")
3737
endif()
3838

39-
if (NOT TINYUSB_OPT_SKIP_CHECK_IPO_SUPPORTED)
40-
# enable LTO if supported
39+
if (NOT FAMILY STREQUAL rp2040)
40+
# enable LTO if supported skip rp2040
4141
include(CheckIPOSupported)
4242
check_ipo_supported(RESULT IPO_SUPPORTED)
4343
if (IPO_SUPPORTED)

0 commit comments

Comments
 (0)