From 380b9575e9d0365827b43f4a517e7ea3d56f9ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Sun, 26 Dec 2021 07:31:19 +0100 Subject: [PATCH] build script: include cpu arch-specific files, if any --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index aecb7e6..1bca221 100755 --- a/build.sh +++ b/build.sh @@ -54,6 +54,9 @@ then else CFLAGS="${CFLAGS} -DNDEBUG -Os -g0 -s" CORE='src/uxn-fast.c' + ARCH=`${CC} -dumpmachine 2> /dev/null || echo nope` + ARCH=${ARCH%%-*} + CORE="${CORE} `find src -name *_${ARCH}.c 2> /dev/null || true`" fi echo "Building.."