summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2021-01-22 10:11:54 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-01-22 10:11:57 +0100
commitffdba61fc369d0a595a7835f27d1d3ceb3b64cf2 (patch)
treef19709a1d797768947de7fa46c74aab57a1389ac /bin
parentfc76e15ffacae82a9045d81aa8b32c81783c1d28 (diff)
downloadptxdist-ffdba61fc369d0a595a7835f27d1d3ceb3b64cf2.tar.gz
ptxdist-ffdba61fc369d0a595a7835f27d1d3ceb3b64cf2.tar.xz
ptxdist: fallback to icerun if icecc cannot be used
If icecc is disabled for packages or individual files, then use icerun instead. This that the local parallelization is still limited even if a significant number of files bypass icecc. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 0a252e4ab..b3bb43a2b 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2504,6 +2504,7 @@ setup_path() {
if [ -n "${PTXCONF_SETUP_ICECC}" ]; then
PTXDIST_ICECC="$(which icecc 2>/dev/null)"
PTXDIST_ICECC_CREATE_ENV="$(which "${PTXCONF_SETUP_ICECC_CREATE_ENV}")"
+ PTXDIST_ICERUN="$(which icerun 2>/dev/null)"
if [ -z "${PTXDIST_ICECC}" -o -z "${PTXDIST_ICECC_CREATE_ENV}" ]; then
echo
echo "${PTXDIST_LOG_PROMPT}warning: icecc has been activated, but was not found on your system"
@@ -2602,6 +2603,7 @@ setup_export() {
PTXDIST_FORCE_DOWNLOAD \
PTXDIST_ICECC \
PTXDIST_ICECC_CREATE_ENV \
+ PTXDIST_ICERUN \
PTXDIST_LOG_PROMPT \
PTXDIST_OUTPUT_SYNC \
PTXDIST_OPTIMIZE_IO \