aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2016-02-24 16:23:46 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-02-24 18:04:09 +0000
commita4a07407c1fdd1108e2747d3120a736d635af902 (patch)
tree928b3edea692d64e36a1b918f23867e89a530131 /scripts
parent7916bfaba8a642b700a3d1aecc481d56d0484f92 (diff)
Make the Windows tempdir default to something under the CI directory and explicitly create it.
Turns out, mktemp doesn't like being passed a non-existent directory. -- MOS_MIGRATED_REVID=115454169
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/windows/compile_windows.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ci/windows/compile_windows.sh b/scripts/ci/windows/compile_windows.sh
index ff1ea40e01..ae94928068 100755
--- a/scripts/ci/windows/compile_windows.sh
+++ b/scripts/ci/windows/compile_windows.sh
@@ -34,7 +34,8 @@ fi
# These variables are temporarily needed for Bazel
export BAZEL_SH="c:/tools/msys64/usr/bin/bash.exe"
-export TMPDIR="c:/temp"
+export TMPDIR=${TMPDIR:-c:/bazel_ci/temp}
+mkdir -p "${TMPDIR}" # mkdir does work with a path starting with 'c:/', wow
# Even though there are no quotes around $* in the .bat file, arguments
# containing spaces seem to be passed properly.