Initial add of build-linux.sh

This commit is contained in:
Ryan C. Gordon 2016-04-03 00:07:19 -04:00
parent 986140db64
commit f9bfaf7435

17
Sources/build-linux.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l`
let NCPU=$NCPU+2
echo "Will build with 'make -j$NCPU' ... please edit this script if incorrect."
set -e
set -x
rm -rf cmake-build
mkdir $_
cd $_
#cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 ..
#ninja
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 ..
make -j$NCPU