Skip to content

Add Android stlport and default toolchains to BUILD. - #8290

Merged
acozzette merged 1 commit into
protocolbuffers:masterfrom
blueshiftlabs:more-android-configs
Oct 13, 2021
Merged

acozzette merged 1 commit into
protocolbuffers:masterfrom
blueshiftlabs:more-android-configs

Conversation

@blueshiftlabs

Copy link
Copy Markdown
Contributor

These are additional possibilities for --crosstool_top for Android NDK
compilation. Since the NDK doesn't have -lpthread, getting these flags
wrong leads to a linker error.

Fixes: 180084220

@dlj-NaN dlj-NaN left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a quick request... the toolchain target names are probably a bit opaque to folks not used to working with Android, so just one request...

Comment thread BUILD
],
)

config_setting(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would you mind adding a comment with a link to https://docs.bazel.build/versions/master/android-ndk.html#configuring-the-stl ?

I think it probably makes sense to insert above this config_setting rule, with a note that it applies to several of them.

These are additional possibilities for --crosstool_top for Android NDK
compilation. Since the NDK doesn't have -lpthread, getting these flags
wrong leads to a linker error.

Fixes: 180084220
@blueshiftlabs
blueshiftlabs force-pushed the more-android-configs branch from cd38c35 to a8038c2 Compare May 13, 2021 06:58
@blueshiftlabs

Copy link
Copy Markdown
Contributor Author

Done, PTAL.

@blueshiftlabs
blueshiftlabs requested a review from dlj-NaN June 8, 2021 05:08
@acozzette
acozzette merged commit 255dec1 into protocolbuffers:master Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants