mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Fixes -lpthread problem when building with android_arm64 config (#20337)
When using `--platforms=//:android_arm64` on command line, the build fails to match any android condition.
```
platform(
name = "android_arm64",
constraint_values = [
"@platforms//os:android",
"@platforms//cpu:arm64",
],
)
```
Closes #20337
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/20337 from stakira:patch-1 623053cb19
PiperOrigin-RevId: 726741995
This commit is contained in:
parent
bdf334cbb4
commit
4f5968a208
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ COPTS = select({
|
|||
|
||||
# Android and MSVC builds do not need to link in a separate pthread library.
|
||||
LINK_OPTS = select({
|
||||
"@platforms//os:android": [],
|
||||
"//build_defs:config_android": [],
|
||||
"//build_defs:config_android-legacy-default-crosstool": [],
|
||||
"//build_defs:config_android-stlport": [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue