Don't run coprodis on Risc-V or RP2040 binaries (#1875)

This commit is contained in:
will-v-pi 2024-08-27 17:22:15 +01:00 committed by GitHub
parent dd4aacbd1c
commit a2a4c2041e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,8 @@ function(pico_add_dis_output TARGET)
pico_get_runtime_output_directory(${TARGET} output_path)
# PICO_CMAKE_CONFIG: PICO_NO_COPRO_DIS, Disable disassembly listing postprocessing that disassembles RP2350 coprocessor instructions, type=bool, default=0, group=build
if (NOT (PICO_NO_COPRO_DIS OR PICO_NO_PICOTOOL))
if (NOT (PICO_NO_COPRO_DIS OR PICO_NO_PICOTOOL OR PICO_RISCV OR PICO_RP2040))
# Don't run coprocessor dissassembly on Risc-V or RP2040, as those don't have the RP2350 coprocessors
pico_init_picotool()
if(picotool_FOUND)
# add custom disassembly if we have picotool