From 276a8cd19d4cde6245ed3323cee695e7834a0b9d Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 11 Jul 2016 12:06:07 +0000 Subject: 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 --- compile.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compile.sh') 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 \ -- cgit v1.2.3