Skip to content

Conversation

@keith
Copy link
Member

@keith keith commented Apr 13, 2022

When building for the armv7 android target, we would ideally specify a
cpu:armv7 constraint, but because of the linked bazel issue this is
currently hardcoded as arm in bazel's NDK setup. As far as I can tell
the platform we request for use with rules rust has to match the
constraints in bazel, otherwise it won't discover the NDK CC toolchain
for linking.

When building for the armv7 android target, we would ideally specify a
cpu:armv7 constraint, but because of the linked bazel issue this is
currently hardcoded as arm in bazel's NDK setup. As far as I can tell
the platform we request for use with rules rust has to match the
constraints in bazel, otherwise it won't discover the NDK CC toolchain
for linking.
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

This seems acceptable to me. But @hlopko could you take a look too? Feel free to merge if you think this is acceptable too.

@keith
Copy link
Member Author

keith commented Apr 14, 2022

Note I also submitted bazelbuild/bazel#15248 but it's unclear to me if that will be a reasonable change, it might break some stuff that I don't know about

@hlopko hlopko merged commit f6f27a8 into bazelbuild:main Apr 15, 2022
@keith keith deleted the ks/add-workaround-for-arm-vs-armv7-android-issue branch April 15, 2022 15:28
@keith
Copy link
Member Author

keith commented Apr 15, 2022

Thanks all!

keith added a commit to keith/rules_rust that referenced this pull request Apr 25, 2022
UebelAndre added a commit that referenced this pull request Apr 25, 2022
This reverts commit f6f27a8.

Co-authored-by: UebelAndre <github@uebelandre.com>
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.

3 participants