Skip to content

Commit a2a4c20

Browse files
authored
Don't run coprodis on Risc-V or RP2040 binaries (#1875)
1 parent dd4aacb commit a2a4c20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmake/on_device.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ function(pico_add_dis_output TARGET)
2929
pico_get_runtime_output_directory(${TARGET} output_path)
3030

3131
# PICO_CMAKE_CONFIG: PICO_NO_COPRO_DIS, Disable disassembly listing postprocessing that disassembles RP2350 coprocessor instructions, type=bool, default=0, group=build
32-
if (NOT (PICO_NO_COPRO_DIS OR PICO_NO_PICOTOOL))
32+
if (NOT (PICO_NO_COPRO_DIS OR PICO_NO_PICOTOOL OR PICO_RISCV OR PICO_RP2040))
33+
# Don't run coprocessor dissassembly on Risc-V or RP2040, as those don't have the RP2350 coprocessors
3334
pico_init_picotool()
3435
if(picotool_FOUND)
3536
# add custom disassembly if we have picotool

0 commit comments

Comments
 (0)