build script: include cpu arch-specific files, if any
This commit is contained in:
parent
66f5ba6e4d
commit
380b9575e9
3
build.sh
3
build.sh
|
@ -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.."
|
||||||
|
|
Loading…
Reference in New Issue