fix RISC-V build

This commit is contained in:
graham sanderson 2024-09-01 09:44:42 -05:00
parent d957c738db
commit b3cadb7de2
2 changed files with 7 additions and 0 deletions

View file

@ -29,6 +29,9 @@ if (NOT TARGET pico_platform)
hardware_dcp
hardware_rcp
)
if (PICO_RISCV)
pico_mirrored_target_link_libraries(pico_platform INTERFACE hardware_hazard3)
endif()
endif()
function(pico_add_platform_library TARGET)

View file

@ -53,6 +53,10 @@ extern "C" {
#define hazard3_irqarray_clear(csr, index, data) static_assert(false, "Not supported: Xh3irq extension")
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif