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