Skip to content

Allow library/common/jni/ to be built on non-Android platforms#2685

Closed
RyanTheOptimist wants to merge 2 commits intoenvoyproxy:mainfrom
RyanTheOptimist:jni_linux
Closed

Allow library/common/jni/ to be built on non-Android platforms#2685
RyanTheOptimist wants to merge 2 commits intoenvoyproxy:mainfrom
RyanTheOptimist:jni_linux

Conversation

@RyanTheOptimist
Copy link
Copy Markdown
Contributor

Allow library/common/jni/ to be built on non-Android platforms
Use bazel select to make a number of android-specific targets conditional on Android.

Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Ryan Hamilton <rch@google.com>
@RyanTheOptimist RyanTheOptimist marked this pull request as ready for review November 18, 2022 20:35
@RyanTheOptimist RyanTheOptimist marked this pull request as draft November 18, 2022 20:54
Signed-off-by: Ryan Hamilton <rch@google.com>
@RyanTheOptimist RyanTheOptimist marked this pull request as ready for review November 22, 2022 19:56
@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

/assign @jpsim

Comment on lines -69 to +70
"-llog",
] + select({
"@envoy//bazel:dbg_build": ["-Wl,--build-id=sha1"],
"@envoy//bazel:android": ["-llog"],
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.

Is select mutually exclusive? I.e. should this be two selects?

@jpsim
Copy link
Copy Markdown
Contributor

jpsim commented Dec 1, 2022

Sorry for the delay in reviewing this, I missed it while I was out. Would you be ok to close this and re-open in Envoy?

@RyanTheOptimist
Copy link
Copy Markdown
Contributor Author

Sorry for the delay in reviewing this, I missed it while I was out. Would you be ok to close this and re-open in Envoy?

Sure, no problem! (I forgot I had this PR open, too)

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