diff options
author | Jingwen Chen <jingwen@google.com> | 2022-09-07 10:34:41 +0000 |
---|---|---|
committer | Jingwen Chen <jingwen@google.com> | 2022-09-09 00:26:55 +0000 |
commit | 02075650624ddb923343f5f7606d69d1ba762c8a (patch) | |
tree | bbcf88caf5c2ec69ccd79c277c3cc28af142bb67 /examples | |
parent | 03578dab503fe96a2d7a88c86996977198cabd8c (diff) | |
download | bazel-02075650624ddb923343f5f7606d69d1ba762c8a.tar.gz |
Change the default --platforms to host, and restrict the allowed
--platforms values.
The current set of allowed --platforms are:
- //build/bazel/platforms:linux_x86_64 (default)
- //build/bazel/platforms:android_target (infers from product config - variables, i.e. lunch)
This list is enforced by the startup --invocation_policy flag. An
invalid --platforms value results in:
ERROR: Flag value '[//build/bazel/platforms:android_arm64]' for option
'--platforms' is not allowed by invocation policy and the policy does
not specify a new value. Allowed values are:
[//build/bazel/platforms:android_target, //build/bazel/platforms:linux_x86_64]
This will prevent undefined behavior, such as `lunch aosp_arm && b build --config=android_x86_64`.
Given that the host platform is now default, all android cross
compilation commands need to pass --config=android to succeed.
The other platform definitions aren't deleted yet because they're needed
for split transition configuration (e.g. see apex_aab).
Bug: 244766775
Test: presubmits
Change-Id: Ifc0ade319543f2c2c5e8581e8282ffd86aac67d0
Diffstat (limited to 'examples')
-rw-r--r-- | examples/partitions/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/partitions/BUILD b/examples/partitions/BUILD index 9b33232d..eb3efa12 100644 --- a/examples/partitions/BUILD +++ b/examples/partitions/BUILD @@ -4,6 +4,7 @@ package(default_visibility = ["//visibility:public"]) partition( name = "system_image", + tags = ["manual"], # b/234509030 type = "system", deps = [ "//build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal", |