Jingwen Chen | 14e8903 | 2020-10-12 10:32:35 +0000 | [diff] [blame] | 1 | # Lock down the PATH variable in actions to /usr/bin and /usr/local/bin. |
| 2 | build --experimental_strict_action_env |
| 3 | |
| 4 | # Explicitly allow unresolved symlinks (it's an experimental Bazel feature) |
| 5 | build --experimental_allow_unresolved_symlinks |
| 6 | |
| 7 | # Enable usage of cc_shared_library build APIs |
| 8 | build --experimental_cc_shared_library |
| 9 | |
| 10 | # Enable building targets in //external:__subpackages__. |
| 11 | common --experimental_sibling_repository_layout |
| 12 | common --experimental_disable_external_package |
Jingwen Chen | 2c11916 | 2020-10-13 22:52:53 +0000 | [diff] [blame] | 13 | |
| 14 | # Enable toplevel_output_directories and Ninja executor in Bazel |
| 15 | common --experimental_ninja_actions |
Jingwen Chen | 730a4b6 | 2020-11-05 03:29:34 -0500 | [diff] [blame] | 16 | |
| 17 | # Increase refresh rate of command line UI for improved perceived responsiveness. |
| 18 | common --show_progress_rate_limit=0.05 |
| 19 | |
| 20 | # These are disabled when running under soong_ui (default = auto). Force enable them here. |
| 21 | common --color=yes |
| 22 | common --curses=yes |
| 23 | |
| 24 | # Show the full set of flags for observability and debuggability. |
| 25 | common --announce_rc |
| 26 | |
Jingwen Chen | 5671a1e | 2020-11-05 04:23:13 -0500 | [diff] [blame] | 27 | # Run bazel query from the workspace, without cd'ing into out/soong/queryview |
| 28 | # Note that this hardcodes the output dir. It will not work if $OUT_DIR != out. |
| 29 | common:queryview --package_path=%workspace%/out/soong/queryview |
| 30 | |
Jingwen Chen | e43ad63 | 2020-12-02 04:37:31 -0500 | [diff] [blame^] | 31 | # Run bazel query from the workspace, without cd'ing into out/soong/bp2build |
| 32 | # Note that this hardcodes the output dir. It will not work if $OUT_DIR != out. |
| 33 | common:bp2build --package_path=%workspace%/out/soong/bp2build |
| 34 | |
Jingwen Chen | 730a4b6 | 2020-11-05 03:29:34 -0500 | [diff] [blame] | 35 | # Support a local user-specific bazelrc file. |
| 36 | try-import %workspace%/user.bazelrc |