mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 12:15:53 +01:00
18 lines
395 B
Bash
18 lines
395 B
Bash
|
#!/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
|
||
|
|