# HG changeset patch # User Rob Landley # Date 1408298420 18000 # Node ID 263bb9ff965718140060b3fb2798d759ad5ec7df # Parent 0f61292eab70068ea1e11eace7f12f46e2a012ce Fix parallel (NOP) host-tools.sh calls. The "build hello world" smoketest creates and deletes an output file. It used to produce this temp file in build/host, but that changed the directory timestamp so record-commands thought something changed and rebuilt its symlink list, screwing up parallel builds that were using that. The first fix moved the tempfile to host-temp, but since every host-tools build deletes and recreates that directory, parallel builds still screwed each other up. The new fix is -o /dev/null so the compile still returns an error code, but the temp file is disposed of. Multiple processes writing to /dev/null in parallel shouldn't cause a problem. diff -r 0f61292eab70 -r 263bb9ff9657 host-tools.sh --- a/host-tools.sh Sun Aug 17 00:06:04 2014 -0500 +++ b/host-tools.sh Sun Aug 17 13:00:20 2014 -0500 @@ -64,8 +64,7 @@ if [ "$BUILD_STATIC" != none ] then - $CC "$SOURCES/toys/hello.c" --static -o "$WORK/hello-$$" && - rm "$WORK/hello-$$" + $CC "$SOURCES/toys/hello.c" --static -o /dev/null if [ $? -ne 0 ] then