| # Sensible Defaults |
| build --sandbox_default_allow_network=false |
| build --incompatible_strict_action_env |
| build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 |
| build --incompatible_enable_cc_toolchain_resolution=true |
| |
| # This isn't currently the defaut in Bazel, but we enable it to test we'll be ready if/when it flips. |
| build --incompatible_disallow_empty_glob |
| |
| # Require Platform Transitions |
| ## This works by setting the targte platform to an invalid platform |
| ## and each `x_binary()` and `x_library()` rule unfortunately needs |
| ## to tag itself with `platform_missing` to get excluded from glob |
| ## builds like `build //...` but still have a way to include them |
| ## by removing the filter line for things like Rust Analyzer. |
| build --host_platform=//bazel/platforms:host |
| build --platforms=//bazel/platforms:missing |
| build --build_tag_filters=-platform_missing |