Skip to content

Commit 1542729

Browse files
authored
Add -j flag to linux-build.bash so that builds are done in parallel (#272)
* Add -j flag to in linux-build.bash so that all builds all done in parallel * Make libyaml build parallel as well
1 parent 70d672b commit 1542729

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builds/linux-build.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ source $MODULESHOME/init/bash
5454
source $rootdir/$machine_name/$platform.env
5555

5656
# Default Makeflags
57-
makeflags="NETCDF=4"
57+
makeflags="-j NETCDF=4"
5858

5959
# Update makeflags based on the target
6060
update_makeflags() {
@@ -85,7 +85,7 @@ build_libyaml() {
8585
pushd $srcdir/libyaml
8686
$srcdir/libyaml/bootstrap
8787
$srcdir/libyaml/configure --prefix="$target_dir" --disable-shared
88-
make && make install
88+
make -j && make install
8989
if [ $? -ne 0 ]; then
9090
echo "Could not build the libyaml library!"
9191
exit 1

0 commit comments

Comments
 (0)