Skip to content

Commit

Permalink
sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Oct 9, 2024
1 parent 0ad765b commit 9985338
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dev/ci/teardown-sccache
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ SUDO=${SUDO:-false}
exec 2>&1
set -x

# teardown-sccache can still be called even when setup-sccache fails, so don't
# assume that sccache is in PATH and also don't assume that the log file exists.

if $SUDO; then
sudo sccache --stop-server
sudo /usr/local/bin/sccache --stop-server
else
sccache --stop-server
/usr/local/bin/sccache --stop-server
fi

cat sccache.log
if test -e sccache.log; then
cat sccache.log;
fi

# Remove compiler wrappers from PATH.
PATH=$(ruby -e 'paths = ENV["PATH"].split(":"); paths.delete("/usr/local/libexec/sccache"); puts paths.join(":")')
Expand Down

0 comments on commit 9985338

Please sign in to comment.