Skip to content
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

Allow CMake user to disable Symbolize functionality #523

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

edbaunton
Copy link
Contributor

@edbaunton edbaunton commented Feb 6, 2020

Currently the user has to rely on the HAVE_SYMBOLIZE detection inside
CMakeLists.txt without having any control over whether it should be used.

Add support for disabling HAVE_SYMBOLIZE at configure time so user can specify
cmake -DHAVE_SYMBOLIZE=0.

Signed-off-by: Ed Baunton ebaunton1@bloomberg.net

@edbaunton
Copy link
Contributor Author

On the platform I am testing on which doesn't have dladdr functionality, I think I am falling foul of this check which I think could simply be rewritten as:

elseif (HAVE_DLADDR)

because the CMake Documentation reports that UNIX will return True on Apple.

However I am not familiar enough to know whether that logic is like that for some hidden reason.

CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Show resolved Hide resolved
Currently the user has to rely on the HAVE_SYMBOLIZE detection inside
CMakeLists.txt without having any control over whether it should be used.

Add support for disabling HAVE_SYMBOLIZE at configure time so user can specify
`cmake -DHAVE_SYMBOLIZE=0`.

Signed-off-by: Ed Baunton <ebaunton1@bloomberg.net>
@edbaunton edbaunton force-pushed the cmake-have-symbolize branch from 4be041c to eb13e4f Compare February 15, 2020 22:16
@edbaunton
Copy link
Contributor Author

Made the changes.

@edbaunton edbaunton requested a review from sergiud March 19, 2020 22:25
@sergiud sergiud merged commit dfc0e44 into google:master Mar 25, 2020
@sergiud sergiud added this to the 0.5 milestone Mar 30, 2021
@sergiud sergiud mentioned this pull request May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants