aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/bootstrap/buildenv.sh
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-05 07:37:44 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-09-06 15:38:23 +0000
commit57db5090763202521da48e71ff5f4c77f4950fd2 (patch)
treee5fba4e62059a37b346c989f79746570ad69d207 /scripts/bootstrap/buildenv.sh
parentcd369d3a8c80cb51a38acf8d35dc6541a0867232 (diff)
Windows bootstrapping: Fix compile.sh with setting $TMPDIR.
It now always uses mixed path style (drive letter + forward slashes) and expands abbreviated paths (when c:\\looongpath\\foo is abbreviated to c:\\looong~1\foo). The result will always look like c:/looongpath/foo/. Fixes https://github.com/bazelbuild/bazel/issues/1714 -- MOS_MIGRATED_REVID=132218638
Diffstat (limited to 'scripts/bootstrap/buildenv.sh')
-rwxr-xr-xscripts/bootstrap/buildenv.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh
index 610a218ec9..ebcf9429ac 100755
--- a/scripts/bootstrap/buildenv.sh
+++ b/scripts/bootstrap/buildenv.sh
@@ -59,7 +59,8 @@ esac
# Fix TMPDIR on msys
case "${PLATFORM}" in
msys*|mingw*)
- TMPDIR=${TMPDIR:-$(cygpath -m $TMP)}
+ default_tmp=${TMP:-$(cygpath -W)/Temp}
+ TMPDIR=$(cygpath -ml "${TMPDIR:-$default_tmp}")
esac