mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
fix pre-commit, also skip lto for rp2040
This commit is contained in:
parent
3678a25baa
commit
2021c62997
@ -24,4 +24,4 @@ target_include_directories(${PROJECT} PUBLIC
|
|||||||
|
|
||||||
# Configure compilation flags and libraries for the example without RTOS.
|
# Configure compilation flags and libraries for the example without RTOS.
|
||||||
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
||||||
family_configure_host_example(${PROJECT} noos)
|
family_configure_host_example(${PROJECT} noos)
|
||||||
|
@ -36,8 +36,8 @@ if (NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/${FAMILY}/family.cmake)
|
|||||||
message(FATAL_ERROR "Family '${FAMILY}' is not known/supported")
|
message(FATAL_ERROR "Family '${FAMILY}' is not known/supported")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT TINYUSB_OPT_SKIP_CHECK_IPO_SUPPORTED)
|
if (NOT FAMILY STREQUAL rp2040)
|
||||||
# enable LTO if supported
|
# enable LTO if supported skip rp2040
|
||||||
include(CheckIPOSupported)
|
include(CheckIPOSupported)
|
||||||
check_ipo_supported(RESULT IPO_SUPPORTED)
|
check_ipo_supported(RESULT IPO_SUPPORTED)
|
||||||
if (IPO_SUPPORTED)
|
if (IPO_SUPPORTED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user