2016-04-03 06:07:19 +02:00
|
|
|
#!/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
|
2016-04-07 05:16:30 +02:00
|
|
|
|
|
|
|
# This is the eventual path for amd64.
|
2019-08-17 09:37:58 +02:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. $1
|
2016-04-07 05:16:30 +02:00
|
|
|
|
|
|
|
# Right now we force x86, though...
|
2016-04-19 03:36:28 +02:00
|
|
|
#cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 ..
|
2018-06-09 14:43:50 +02:00
|
|
|
echo "ECC first"
|
2018-06-09 15:17:01 +02:00
|
|
|
make ecc
|
2018-06-09 14:43:50 +02:00
|
|
|
echo "Then the rest..."
|
2016-04-03 06:07:19 +02:00
|
|
|
make -j$NCPU
|
|
|
|
|