Add parallel builds to the ninja
This commit is contained in:
parent
207e588d05
commit
edc9a3e52d
6
builder
6
builder
|
@ -22,16 +22,14 @@ function compile() {
|
||||||
function build() {
|
function build() {
|
||||||
pushd $BUILD_DIR
|
pushd $BUILD_DIR
|
||||||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug $ROOT_DIR
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug $ROOT_DIR
|
||||||
#make -j 4
|
ninja -j `nproc`
|
||||||
ninja
|
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
function build-release() {
|
function build-release() {
|
||||||
pushd $BUILD_DIR
|
pushd $BUILD_DIR
|
||||||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release $ROOT_DIR
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release $ROOT_DIR
|
||||||
#make -j 4
|
ninja -j `nproc`
|
||||||
ninja
|
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue