Mercurial > hg > aboriginal
changeset 1674:263bb9ff9657
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.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 17 Aug 2014 13:00:20 -0500 |
parents | 0f61292eab70 |
children | a87931846137 |
files | host-tools.sh |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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