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

Fix musl build by checking whether execinfo.h's backtrace is present #602

Merged
merged 1 commit into from Mar 2, 2022

Conversation

chewi
Copy link
Contributor

@chewi chewi commented Mar 1, 2022

Admittedly I haven't tested it with musl, as I don't have it readily available, but I have tested without execinfo.h present, checking that it definitely used the "noop" implementation and vice-versa.

I noticed that the condition in i_crash_noop.cpp has !defined GEKKO whereas the condition in i_crash_posix.cpp has !defined GCONSOLE. I get the impression they should be the same, so is that a mistake?

Closes: #533

Copy link
Contributor

@AlexMax AlexMax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

For what it's worth. I think GCONSOLE is for any port to a console, while GEKKO is just switch.

@AlexMax AlexMax merged commit 419c583 into odamex:stable Mar 2, 2022
@chewi chewi deleted the execinfo branch March 2, 2022 11:01
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.

[BUG] common/i_crash_posix.cpp:34:10: fatal error: execinfo.h: No such file or directory
2 participants