From 9dc7311ed6920b34e1b3c6b3c4f922ff84d4ea09 Mon Sep 17 00:00:00 2001 From: Rix Date: Thu, 1 Oct 2026 12:43:50 -0700 Subject: [PATCH] Build the PS1 target hard-float again. Since string.format stopped converting to double, nothing in liblua emits a cop1 instruction either way: built without -msoft-float it disassembles identically. Keeping the flag only makes ld warn about mixed float ABIs in every hard-float program that links liblua. This reverts commit 360b1cb52170127c234c099f93a82a55459123d5. --- src/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 268401c..da7499f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -27,9 +27,6 @@ PREFIX ?= mipsel-none-elf endif ARCHFLAGS = -march=mips1 -mabi=32 -EL -fno-pic -mno-shared -mno-abicalls -mfp32 -mno-llsc ARCHFLAGS += -fno-stack-protector -nostdlib -ffreestanding -# string.format converts to double for %f, %e and %g. The PS1 has no FPU, so -# that has to go through libgcc's soft-float routines. -ARCHFLAGS += -msoft-float CPPFLAGS = -Wall -DLUA_COMPAT_ALL -DLUA_TARGET_PSX CPPFLAGS += -ffunction-sections CPPFLAGS += -fdata-sections -mno-gpopt -fomit-frame-pointer