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