-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(symbolize): Bazel build system define HAVE_SYMBOLIZE #1116
feat(symbolize): Bazel build system define HAVE_SYMBOLIZE #1116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from a Bazel point-of-view, but leaving approval to @sergiud as he's mentioned in the comment.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1116 +/- ##
==========================================
+ Coverage 64.04% 64.06% +0.02%
==========================================
Files 20 20
Lines 2578 2580 +2
Branches 898 907 +9
==========================================
+ Hits 1651 1653 +2
- Misses 662 663 +1
+ Partials 265 264 -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Bazel part is looking good. I have just a remark regarding the comment: there is no strict rule for how features should be detected. In this specific instance, however, we prefer the use of the build system for consistency and maintainability reasons.
Symbolization support on Linux and BSD requires link.h which is usually provided by the GNU C Library (glibc). Assume the header to be present at all times by unconditionally defining HAVE_SYMBOLIZE on the corresponding platforms.
40d47d8
to
f0f7d3c
Compare
Symbolization support on Linux and BSD requires link.h which is usually provided by the GNU C Library (glibc). Assume the header to be present at all times by unconditionally defining HAVE_SYMBOLIZE on the corresponding platforms.
link.h
is usually provided by glibc. Current implementation of symbolize can work onlink.h
. Enhance the symbolize detection logic to supportlink.h
by defining HAVE_SYMBOLIZE in bazel build description file.The choice of altering bazel build file is for the following reasons
This PR close #1084, supersede #1085 and #1114. It also fixes #1111.