Serious-Engine/Sources/build-macarm.sh

15 lines
260 B
Bash
Raw Normal View History

2021-04-04 21:33:39 +02:00
#!/bin/bash
NCPU=`sysctl -n hw.ncpu`
echo "Will build with 'make -j$NCPU' ... please edit this script if incorrect."
set -e
set -x
rm -rf cmake-build
mkdir $_
cd $_
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_OSX_ARCHITECTURES=arm64 .. $1
2021-04-04 21:33:39 +02:00
make -j$NCPU