aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/bootstrap/buildenv.sh
diff options
context:
space:
mode:
authorGravatar Dmitry Lomov <dslomov@google.com>2016-06-24 11:52:50 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-06-24 12:38:10 +0000
commit19fd76f4376fab4f11e11099aeaf34d36e1d44df (patch)
tree0e22701420a78958af2fe8a3f37e59f2d6cf09f5 /scripts/bootstrap/buildenv.sh
parentbd4dff8696656d9fd4885af2980dae62c41bc0f7 (diff)
Do not require users to set TMPDIR for bootstrap on Windows.
Fixes 1444. -- Change-Id: If9afa2bebcd35b0c0882685588d8e1f3b18f5344 Reviewed-on: https://bazel-review.googlesource.com/#/c/3890/ MOS_MIGRATED_REVID=125771832
Diffstat (limited to 'scripts/bootstrap/buildenv.sh')
-rwxr-xr-xscripts/bootstrap/buildenv.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh
index 93825132d7..1ca2c710f6 100755
--- a/scripts/bootstrap/buildenv.sh
+++ b/scripts/bootstrap/buildenv.sh
@@ -43,6 +43,13 @@ msys*|mingw*)
EXE_EXT=".exe"
esac
+# Fix TMPDIR on msys
+case "${PLATFORM}" in
+msys*|mingw*)
+ TMPDIR=${TMPDIR:-$(cygpath -m $TMP)}
+esac
+
+
# Whether we display build messages or not. We set this conditionally because
# the file including us or the user may already have defined VERBOSE to their
# liking.