From ccc7bfee44c60e90d4ac1f5468b22a7a1ec6d51e Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Dec 2024 00:51:56 +0800 Subject: improve get.sh --- core/xpack.lua | 2 +- scripts/get.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/xpack.lua b/core/xpack.lua index 9061f418a..c0c6ae880 100644 --- a/core/xpack.lua +++ b/core/xpack.lua @@ -125,7 +125,7 @@ xpack("xmakesrc") local format = package:format() if format == "srpm" or format == "deb" then batchcmds:runv("./configure") - batchcmds:runv("make") + batchcmds:runv("make", {"-j4"}) end end) diff --git a/scripts/get.sh b/scripts/get.sh index d3bdb7072..052727956 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -223,7 +223,7 @@ if test_nq "$2" "__install_only__"; then ./configure || raise "configure failed!" cd - || raise 'chdir failed!' fi - $make -C $projectdir --no-print-directory || raise "make failed!" + $make -C $projectdir --no-print-directory -j4 || raise "make failed!" fi # do install -- cgit v1.3.1