commit | 19fd76f4376fab4f11e11099aeaf34d36e1d44df | [log] [tgz] |
---|---|---|
author | Dmitry Lomov <dslomov@google.com> | Fri Jun 24 11:52:50 2016 +0000 |
committer | Lukacs Berki <lberki@google.com> | Fri Jun 24 12:38:10 2016 +0000 |
tree | 0e22701420a78958af2fe8a3f37e59f2d6cf09f5 | |
parent | bd4dff8696656d9fd4885af2980dae62c41bc0f7 [diff] [blame] |
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
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh index 9382513..1ca2c71 100755 --- a/scripts/bootstrap/buildenv.sh +++ b/scripts/bootstrap/buildenv.sh
@@ -43,6 +43,13 @@ 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.