Skip to content

Commit 17250d8

Browse files
committed
Fix Risc-V binaries when pico_float_none is set
1 parent 9c6713a commit 17250d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rp2_common/pico_float/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@
106106

107107
target_link_libraries(pico_float_none INTERFACE pico_float_headers)
108108
wrap_float_functions(pico_float_none) # we wrap all functions
109-
# be explicit that there should be no floating point instructions
110-
target_compile_options(pico_float_none INTERFACE -msoft-float)
111-
109+
if (NOT PICO_RISCV)
110+
# be explicit that there should be no floating point instructions
111+
target_compile_options(pico_float_none INTERFACE -msoft-float)
112+
endif()
112113
pico_add_library(pico_float_pico)
113114
if (PICO_RP2040)
114115
target_sources(pico_float_pico INTERFACE

0 commit comments

Comments
 (0)