Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 1 | # Copyright 2016 The Bazel Authors. All rights reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # This file is auto-generated from release/bazelrc.tpl and should not be |
| 16 | # modified directly. |
| 17 | |
| 18 | # This .bazelrc file contains all of the flags required for the provided |
| 19 | # toolchain with Remote Build Execution. |
| 20 | # |
| 21 | # This .bazelrc file also contains all of the flags required for the local |
| 22 | # docker sandboxing. |
| 23 | |
| 24 | # Depending on how many machines are in the remote execution instance, setting |
| 25 | # this higher can make builds faster by allowing more jobs to run in parallel. |
| 26 | # Setting it too high can result in jobs that timeout, however, while waiting |
| 27 | # for a remote machine to execute them. |
| 28 | build:remote --jobs=50 |
| 29 | build:remote --disk_cache= |
| 30 | |
| 31 | # Set several flags related to specifying the platform, toolchain and java |
| 32 | # properties. |
David Ostrovsky | 001943d | 2020-12-20 21:36:25 +0100 | [diff] [blame^] | 33 | build:remote --host_javabase=@rbe_jdk11//java:jdk |
| 34 | build:remote --javabase=@rbe_jdk11//java:jdk |
| 35 | build:remote --crosstool_top=@rbe_jdk11//cc:toolchain |
| 36 | build:remote --extra_toolchains=@rbe_jdk11//config:cc-toolchain |
| 37 | build:remote --extra_execution_platforms=@rbe_jdk11//config:platform |
| 38 | build:remote --host_platform=@rbe_jdk11//config:platform |
| 39 | build:remote --platforms=@rbe_jdk11//config:platform |
Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 40 | build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 |
Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 41 | |
| 42 | # Set various strategies so that all actions execute remotely. Mixing remote |
| 43 | # and local execution will lead to errors unless the toolchain and remote |
| 44 | # machine exactly match the host machine. |
David Ostrovsky | b6d34da | 2020-02-15 12:20:21 +0100 | [diff] [blame] | 45 | build:remote --spawn_strategy=remote,sandboxed |
Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 46 | build:remote --strategy=Javac=remote |
Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 47 | build:remote --strategy=Genrule=remote |
| 48 | build:remote --define=EXECUTOR=remote |
| 49 | |
| 50 | # Enable the remote cache so action results can be shared across machines, |
| 51 | # developers, and workspaces. |
| 52 | build:remote --remote_cache=remotebuildexecution.googleapis.com |
| 53 | |
| 54 | # Enable remote execution so actions are performed on the remote systems. |
| 55 | build:remote --remote_executor=remotebuildexecution.googleapis.com |
| 56 | |
Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 57 | # Set a higher timeout value, just in case. |
| 58 | build:remote --remote_timeout=3600 |
| 59 | |
| 60 | # Enable authentication. This will pick up application default credentials by |
| 61 | # default. You can use --auth_credentials=some_file.json to use a service |
| 62 | # account credential instead. |
| 63 | build:remote --auth_enabled=true |
| 64 | |
Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 65 | # The following flags enable the remote cache so action results can be shared |
| 66 | # across machines, developers, and workspaces. |
| 67 | build:remote-cache --remote_cache=remotebuildexecution.googleapis.com |
| 68 | build:remote-cache --tls_enabled=true |
| 69 | build:remote-cache --remote_timeout=3600 |
| 70 | build:remote-cache --auth_enabled=true |
| 71 | build:remote-cache --spawn_strategy=standalone |
| 72 | build:remote-cache --strategy=Javac=standalone |
Han-Wen Nienhuys | 9c15e2b | 2019-05-16 16:59:33 +0200 | [diff] [blame] | 73 | build:remote-cache --strategy=Genrule=standalone |