diff options
author | Klaus Aehlig <aehlig@google.com> | 2016-07-11 12:06:07 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2016-07-11 12:24:59 +0000 |
commit | 276a8cd19d4cde6245ed3323cee695e7834a0b9d (patch) | |
tree | 2dbbb0af748a26b32b9f1270b0ae397df4af50ba /compile.sh | |
parent | 6c0acf527146d1fa5c90eaf180639aae9fea775a (diff) |
Make bootstrapping support a designated work dir
Change the bootstrapping process so that setting the BAZEL_WRKDIR
environment variable will tell the bootstrap process to mostly write
to that directory---apart from adding the symlinks next to the WORKSPACE
file. So setting this variable will avoid the usual writes to random
places in the file system (like /tmp and the user's home directory).
--
Change-Id: I9d1af747e75cc2a7bb1af08308acc9dfd927e920
Reviewed-on: https://bazel-review.googlesource.com/#/c/3963
MOS_MIGRATED_REVID=127075535
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compile.sh b/compile.sh index 4daeb3ae54..53fc4127b9 100755 --- a/compile.sh +++ b/compile.sh @@ -189,7 +189,9 @@ if [ $DO_TESTS ]; then fi fi fi - $BAZEL --bazelrc=${BAZELRC} --nomaster_bazelrc test \ + $BAZEL --bazelrc=${BAZELRC} --nomaster_bazelrc \ + ${BAZEL_DIR_STARTUP_OPTIONS} \ + test \ --test_tag_filters="${BAZEL_TEST_FILTERS-}" \ --build_tests_only \ --nolegacy_bazel_java_test \ |