build: Explicitly disable all arch-specific optimizations for sdlapp or sim

Change-Id: I76d1097cea58018cb1e96dbbce8d5feaeacd8a96
This commit is contained in:
Solomon Peachy 2025-12-06 22:36:51 -05:00
parent 95ab3e8b0e
commit ecb3e9936f

6
tools/configure vendored
View file

@ -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