diff options
| author | Damien George <damien@micropython.org> | 2025-05-28 14:28:02 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-06-10 13:43:03 +1000 |
| commit | 17951cee87d63bcc001fdaf1e669a74e6da4af29 (patch) | |
| tree | b1b28f53dde5c3ee1e52b6a5b81aa3934ead904f /examples | |
| parent | 718ff4fdd58efd3e853599b489640877070d17be (diff) | |
py/dynruntime.mk: Enable single-precision float by default on armv6/7m.
Soft float now works on these ARM targets thanks to the parent commit.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/natmod/random/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/natmod/random/Makefile b/examples/natmod/random/Makefile index 5d23eac1e..bffbb32d6 100644 --- a/examples/natmod/random/Makefile +++ b/examples/natmod/random/Makefile @@ -14,4 +14,9 @@ ifeq ($(ARCH),xtensa) MPY_EXTERN_SYM_FILE=$(MPY_DIR)/ports/esp8266/boards/eagle.rom.addr.v6.ld endif +ifeq ($(ARCH),$(filter $(ARCH),armv6m armv7m)) +# Link with libm.a for soft-float helper functions +LINK_RUNTIME = 1 +endif + include $(MPY_DIR)/py/dynruntime.mk |
