From f4ad996f1fe372aadc6e4f53c7ee2c77f825daf8 Mon Sep 17 00:00:00 2001 From: Trevor Suarez Date: Tue, 17 Dec 2019 00:57:54 -0700 Subject: [PATCH] Setting the make `-j` (jobs) flag based on the `ASDF_CONCURRENCY` environment variable See: - asdf-vm/asdf#57 - asdf-vm/asdf#75 - asdf-vm/asdf#147 --- bin/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/install b/bin/install index 28ff833..edead7b 100755 --- a/bin/install +++ b/bin/install @@ -15,6 +15,7 @@ install_php() { local source_path=$(get_download_file_path $install_type $version $tmp_download_dir) local configure_options="$(construct_configure_options $install_path)" + local make_flags="-j$ASDF_CONCURRENCY" download_source $install_type $version $source_path @@ -32,9 +33,9 @@ install_php() { # Build PHP ./buildconf --force || exit 1 ./configure $configure_options || exit 1 - make || exit 1 - # make test || exit 1 - make install || exit 1 + make "$make_flags" || exit 1 + # make "$make_flags" test || exit 1 + make "$make_flags" install || exit 1 ) }