From 2e2cf225b9e1e0b3ee74fd5844b082ff8d8555ac Mon Sep 17 00:00:00 2001 From: Adonis Ling Date: Thu, 24 Oct 2024 19:27:49 +0800 Subject: [PATCH] refactor: build Perl in parallel --- .github/workflows/build.yml | 2 -- devel/scripts/install.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef105f3..b7469ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,8 +76,6 @@ jobs: devel/downloads/download_packages.sh - sed -i '/function install_perl/,/^}/ s/make$/make -j "\\\$(nproc)"/' devel/scripts/install.sh - # Don't install llvm sed -i '/function install_packages/,/^}/ s/llvm//' devel/scripts/install.sh diff --git a/devel/scripts/install.sh b/devel/scripts/install.sh index 412040f..c9c4492 100755 --- a/devel/scripts/install.sh +++ b/devel/scripts/install.sh @@ -298,7 +298,7 @@ function install_perl() { pushd "${PERL_PACKAGE_EXTRACTED_DIR}" >/dev/null ./Configure -des -Dprefix="${DEVEL_HOME_PATH}/opt/${package}" \ -Dlibpth="${DEVEL_HOME_PATH}/lib ${DEVEL_HOME_PATH}/compiler/lib" - make + make -j "${NUM_CORES}" make install popd >/dev/null setup_package "${package}"