Skip to content
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

Add Android Platforms build flags. #1054

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Add Android Platforms build flags. #1054

merged 1 commit into from
Oct 16, 2023

Conversation

katre
Copy link
Member

@katre katre commented Oct 13, 2023

@@ -88,3 +88,5 @@ http_archive(
load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories")

robolectric_repositories()

android_ndk_repository(name = "androidndk")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the NDK a requirement now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before enabling --incompatible_enable_android_toolchain_resolution, this was using the default (and useless) cc_toolchain from bazel's CC autodetection.

Since that's no longer appropriate (it claims armeabi-v7a, I don't know if the cc compiler in this image can actually do this), it seemed better to at least accurately declare that every Android binary needs an NDK for analysis. If you don't have any actual cc_library dependencies it isn't used (which is why the old one worked).

Ideally the Android rules would not require a CC toolchain if it's not being used, but currently they are.

@katre
Copy link
Member Author

katre commented Oct 16, 2023

@Bencodes Any further comments?

@Bencodes Bencodes merged commit eb251f9 into bazelbuild:master Oct 16, 2023
1 check passed
@katre katre deleted the add-android-platforms branch October 17, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants