When building with bazel on a Mac, workaround bazelbuild/bazel#4341#13929
Merged
vjpai merged 1 commit intogrpc:masterfrom Jan 5, 2018
Merged
When building with bazel on a Mac, workaround bazelbuild/bazel#4341#13929vjpai merged 1 commit intogrpc:masterfrom
vjpai merged 1 commit intogrpc:masterfrom
Conversation
|
|
nicolasnoble
approved these changes
Jan 5, 2018
|
Contributor
Author
|
@nicolasnoble : I confirmed that this is used when |
Contributor
|
@vjpai while trying to enable macOS bazel tests on our CI in #20510, I found out that this fixed the build, but makes some of our macos bazel test fail, because the pthread TLS variables need initialization and in our tests it's not always there. is the right solution to add grpc_init() and grpc_shutdown() to our tests as needed so that the ExecCtx's thread local is initialized? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13856.
This is an alternative and more-targeted workaround than the one in #13916 . This way is probably preferred since that way prevented inlining functions and hurt the performance of some microbenchmarks. This will have no effect on any versions except for Mac bazel builds.