-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incompatible_enable_android_toolchain_resolution #16285
Comments
) This is work towards enabling platforms and toolchains for Android builds (bazelbuild/bazel#16285).
Users can use these by adding `--android_platforms=@rules_android//:armeabi-v7a` to their builds (replacing `@rules_android` with the name they use to import https://github.com/bazelbuild/rules_android). This is work towards enabling platforms and toolchains for Android builds (bazelbuild/bazel#16285). PiperOrigin-RevId: 499992246 Change-Id: If03f275cb8372cd18a7cd21a94f693ebcc3dd569
Users can use these by adding `--android_platforms=@rules_android//:armeabi-v7a` to their builds (replacing `@rules_android` with the name they use to import https://github.com/bazelbuild/rules_android). This is work towards enabling platforms and toolchains for Android builds (bazelbuild/bazel#16285). PiperOrigin-RevId: 499992246 Change-Id: If03f275cb8372cd18a7cd21a94f693ebcc3dd569
Users can use these by adding `--android_platforms=@rules_android//:armeabi-v7a` to their builds (replacing `@rules_android` with the name they use to import https://github.com/bazelbuild/rules_android). This is work towards enabling platforms and toolchains for Android builds (bazelbuild/bazel#16285). PiperOrigin-RevId: 499992246 Change-Id: If03f275cb8372cd18a7cd21a94f693ebcc3dd569
Enable Android Platforms tests for android_local_test. Part of bazelbuild#16285.
Enable Android Platforms tests for android_local_test. Part of bazelbuild#16285.
In some cases, this means adding missing dependencies. In many others, it means test cleanups. Part of bazelbuild#16285. PiperOrigin-RevId: 570765426 Change-Id: I36763a45699a37e54b3823be8f70f59d54269ca6
Part of bazelbuild#16285. PiperOrigin-RevId: 571427717 Change-Id: I47075f87e6e13615391bb056ee769d024e6b089e
Part of #16285. PiperOrigin-RevId: 572256569 Change-Id: I47075f87e6e13615391bb056ee769d024e6b089e
In some cases, this means adding missing dependencies. In many others, it means test cleanups. Part of bazelbuild#16285. PiperOrigin-RevId: 570765426 Change-Id: I36763a45699a37e54b3823be8f70f59d54269ca6
Ran a downstream test of #19726:
|
To reproduce the crash (in a clean Bazel checkout with with Bazel built from HEAD):
|
… android_library. Part of #16285. PiperOrigin-RevId: 572479677 Change-Id: If2a19723d4cdfa469e3e8f547baa11ab989835b4
With changes to Android builds, we either need to set up the correct flags, or just use a custom rule that we control. Part of #16285. PiperOrigin-RevId: 572564475 Change-Id: I81887c0babc6513ecd5b228429f6de0252a9e8ef
In some cases, this means adding missing dependencies. In many others, it means test cleanups. Part of #16285. PiperOrigin-RevId: 572585782 Change-Id: I36763a45699a37e54b3823be8f70f59d54269ca6
…is used. Previously the warning could be shadowed by later errors. Part of bazelbuild#16285. PiperOrigin-RevId: 572645472 Change-Id: Ief6ae24b5c4d77e41b167f5d92878eec7d7a6181
…is used. Previously the warning could be shadowed by later errors. Part of #16285. PiperOrigin-RevId: 572899622 Change-Id: Ief6ae24b5c4d77e41b167f5d92878eec7d7a6181
Part of bazelbuild/bazel#16285. Several of these just forcible turn off Android platforms due to other issues (including bazelbuild/rules_android#77)
* Add Android-specific build flags. Part of bazelbuild/bazel#16285. * Switch java runtime flag back
Add Android Platforms flags. Closes bazelbuild#162. Part of bazelbuild/bazel#16285. PiperOrigin-RevId: 573790740 Change-Id: I4c3389448a2e7158ffecfa9f2ca72799a57ff047
I started the internal merge for #19726 and ran into test failures that I thought were already resolved. I'm moving this from the "branch cut" milestone to the "release blocker" milestone so that it can be cherry-picked when ready. |
(Copied from #19726) Downstream projects are mostly clean at this point. A typical error looks like
If any more downstream projects fail, assign an issue to me to triage. |
@bazel-io fork 7.0.0 |
Would it make sense to set a usable default value for --android_platforms to avoid having everyone configure manually? (Alternatively, --fat_apk_cpu was fairly ergonomic because people didn't have to define out all the platforms manually. (I think there still aren't common platform definitions, right?) I wonder if that convenience might be worth preserving in some form?) I think we'll probably also need to update the rules_android_ndk readme (depending on the default) |
Unfortunately, there's no useful default to set it to: we very deliberately don't want to define any actual platforms in the |
What about in |
(Just, ofc, seems like a bummer from a product standpoint to require users to discover boilerplate config on error rather than have a usable (but configurable) default.) |
More importantly, thanks so much for all your work getting these flipped. It's awesome to have platform selection working smoothly without platform_mappings! |
Users can use these by adding `--android_platforms=@rules_android//:armeabi-v7a` to their builds (replacing `@rules_android` with the name they use to import https://github.com/bazelbuild/rules_android). This is work towards enabling platforms and toolchains for Android builds (bazelbuild/bazel#16285). PiperOrigin-RevId: 499992246 Change-Id: If03f275cb8372cd18a7cd21a94f693ebcc3dd569
We are migrating Android builds to use platforms and toolchain resolution to find the SDK and NDK. The work is progressing well but we need to execute more testing before we provide migration directions and flip this flag.
The text was updated successfully, but these errors were encountered: