build script: include cpu arch-specific files, if any

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-12-26 07:31:19 +01:00
parent 66f5ba6e4d
commit 380b9575e9
1 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,9 @@ then
else else
CFLAGS="${CFLAGS} -DNDEBUG -Os -g0 -s" CFLAGS="${CFLAGS} -DNDEBUG -Os -g0 -s"
CORE='src/uxn-fast.c' 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 fi
echo "Building.." echo "Building.."