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 9985338 commit 73c393f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dev/ci/teardown-sccache
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ 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 /usr/local/bin/sccache --stop-server
else
/usr/local/bin/sccache --stop-server
if [[ -e /usr/local/bin/sccache ]]; then
if $SUDO; then
sudo /usr/local/bin/sccache --stop-server
else
/usr/local/bin/sccache --stop-server
fi
fi

if test -e sccache.log; then
Expand Down

0 comments on commit 73c393f

Please sign in to comment.