SERVER-95246 Clear windows Bazel temp directory before SCons execution (#27505)

GitOrigin-RevId: 053c37e5cc8a705f8cc8ebd55bf0b7e90e8ca58a
This commit is contained in:
Zack Winter 2024-09-25 16:02:07 -07:00 committed by MongoDB Bot
parent b1bbf1b019
commit 9f91ee12dd
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ set -o verbose
# Use the Evergreen temp directory to avoid filling up the disk.
mkdir -p $TMPDIR
if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "win32" ]]; then
# TODO(SERVER-94605): remove when Windows temp directory is cleared between task runs
rm -rf Z:/bazel_tmp/* || true
# Z:/ path is necessary to avoid running into MSVC's file length limit,
# see https://jira.mongodb.org/browse/DEVPROD-11126
abs_path=$(cygpath -w "$TMPDIR" | tr '\\' '/')