blob: bef7bb0aa1c7bb48d3b8d5513fe95efec9fdc61b [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
10# Enable building targets in //external:__subpackages__.
11common --experimental_sibling_repository_layout
12common --experimental_disable_external_package
Jingwen Chen2c119162020-10-13 22:52:53 +000013
14# Enable toplevel_output_directories and Ninja executor in Bazel
15common --experimental_ninja_actions
Jingwen Chen730a4b62020-11-05 03:29:34 -050016
17# Increase refresh rate of command line UI for improved perceived responsiveness.
18common --show_progress_rate_limit=0.05
19
20# These are disabled when running under soong_ui (default = auto). Force enable them here.
21common --color=yes
22common --curses=yes
23
24# Show the full set of flags for observability and debuggability.
25common --announce_rc
26
Jingwen Chen5671a1e2020-11-05 04:23:13 -050027# 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.
29common:queryview --package_path=%workspace%/out/soong/queryview
30
Jingwen Chen730a4b62020-11-05 03:29:34 -050031# Support a local user-specific bazelrc file.
32try-import %workspace%/user.bazelrc