aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/bootstrap
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-05 07:07:58 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-09-06 15:38:20 +0000
commitcd369d3a8c80cb51a38acf8d35dc6541a0867232 (patch)
treefe4b09264d54466211aa18fe8e70f4e9963facc2 /scripts/bootstrap
parent6b4b269adf1ae367a7df006d6c86b4ff6a592678 (diff)
*** Reason for rollback *** Still broken. :( *** Original change description *** Windows bootstrapping: Fix compile.sh when $TMP is unset. Fixes https://github.com/bazelbuild/bazel/issues/1714 -- MOS_MIGRATED_REVID=132217266
Diffstat (limited to 'scripts/bootstrap')
-rwxr-xr-xscripts/bootstrap/buildenv.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh
index afce0a12db..610a218ec9 100755
--- a/scripts/bootstrap/buildenv.sh
+++ b/scripts/bootstrap/buildenv.sh
@@ -59,10 +59,7 @@ esac
# Fix TMPDIR on msys
case "${PLATFORM}" in
msys*|mingw*)
- # 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}
+ TMPDIR=${TMPDIR:-$(cygpath -m $TMP)}
esac