From ecb3e9936f5e724846921544d11fb5d755978854 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 6 Dec 2025 22:36:51 -0500 Subject: [PATCH] build: Explicitly disable all arch-specific optimizations for sdlapp or sim Change-Id: I76d1097cea58018cb1e96dbbce8d5feaeacd8a96 --- tools/configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/configure b/tools/configure index 33f5775b82..f49f66ed8e 100755 --- a/tools/configure +++ b/tools/configure @@ -4721,6 +4721,12 @@ RANLIB=`findtool ${RANLIB} --lit` HOSTCC=${HOSTCC:-${CC}} HOSTAR=${HOSTAR:-${AR}} +# This disables all arch-specific code paths (eg inline asm) +# for builds that target the host system +if [ "$app_type" = "sdl-sim" -o "$app_type" = "sdl-app" -o "$app_type" = "checkwps" ]; then + arch="none" +fi + if [ -z "$arch" ]; then cpp_defines=$(echo "" | $CPP $GCCOPTS -dD) if [ -n "$(echo $cpp_defines | grep -w __m68k__)" ]; then