aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/bootstrap
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-02 14:29:17 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-09-06 15:37:45 +0000
commita51ca6fa732af58a7d1667d408a2511ffa3199da (patch)
treefb72bcb33676f6c712769b445e5f6ab444849bc9 /scripts/bootstrap
parent0cfa5d6d89f66cc6be9668dedb61042acd841268 (diff)
Windows bootstrapping: Fix compile.sh when $TMP is unset.
Fixes https://github.com/bazelbuild/bazel/issues/1714 -- MOS_MIGRATED_REVID=132060993
Diffstat (limited to 'scripts/bootstrap')
-rwxr-xr-xscripts/bootstrap/buildenv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh
index 610a218ec9..afce0a12db 100755
--- a/scripts/bootstrap/buildenv.sh
+++ b/scripts/bootstrap/buildenv.sh
@@ -59,7 +59,10 @@ esac
# Fix TMPDIR on msys
case "${PLATFORM}" in
msys*|mingw*)
- TMPDIR=${TMPDIR:-$(cygpath -m $TMP)}
+ # Use long, Unix-style paths.
+ default_tmp="$(cygpath -u "$(cygpath -mlW)")/Temp"
+ [ -n "$TMP" ] && default_tmp="$(cygpath -u "$(cygpath -ml "$TMP")")"
+ TMPDIR=${TMPDIR:-$default_tmp}
esac