summaryrefslogtreecommitdiffstats
path: root/core/includes
diff options
context:
space:
mode:
authorJonathan Bauer2019-06-06 13:14:28 +0200
committerJonathan Bauer2019-06-06 13:14:28 +0200
commit3aa220c2a3897c63025909982809fc2c1c3662d8 (patch)
treeca149ff6a3172bdf9b0a8bebdb1e398a9d13d6bd /core/includes
parentAdd vmware15 target (diff)
downloadmltk-3aa220c2a3897c63025909982809fc2c1c3662d8.tar.gz
mltk-3aa220c2a3897c63025909982809fc2c1c3662d8.tar.xz
mltk-3aa220c2a3897c63025909982809fc2c1c3662d8.zip
swallow errors during distcc detection
Diffstat (limited to 'core/includes')
-rw-r--r--core/includes/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/includes/system.inc b/core/includes/system.inc
index 8885eb65..d852310e 100644
--- a/core/includes/system.inc
+++ b/core/includes/system.inc
@@ -58,7 +58,7 @@ __init () {
# Enable distcc?
testfile="/tmp/test.$$.${RANDOM}.c"
echo "int main() { return 0; }" > "$testfile"
- DISTCC_FALLBACK=0 distcc "gcc-${ver}" -o "${testfile}.bin" -c "$testfile"
+ DISTCC_FALLBACK=0 distcc "gcc-${ver}" -o "${testfile}.bin" -c "$testfile" &>/dev/null
ret=$?
if [ "$ret" = 0 ] && [ -f "${testfile}.bin" ]; then
if [[ "$CC$CXX" == */ccache* ]]; then
@@ -77,7 +77,7 @@ __init () {
fi
export MAKEFLAGS="-j40"
fi
- rm -- "$testfile" "${testfile}.bin"
+ rm -f -- "$testfile" "${testfile}.bin"
fi
}