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

build: Remove boost::stacktrace #4222

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Apr 10, 2024

To shed the boost dependency, we are disabling stacktrace for now. It's not vital and probably not worth keeping boost just for that.

C++23 has std::stacktrace, so as compilers add support for this, we will phase it back in.

We can also add it back if somebody has an alternate suggestion for a 3rd party solution that is a simply drop-in replacement, portable, lightweight dependency, with compatible license. A good compromise might be this one: https://github.com/jeremy-rifkin/cpptrace But I think what I'm proposing is that we accept this PR first, get rid of boost, then we can come back to looking at cpptrace as potentially a way to restore the functionality prior to C++23.

To shed the boost dependency, we are disabling stacktrace for now. It's not
vital and probably not worth keeping boost just for that.

C++23 has std::stacktrace, so as compilers add support for this, we
will phase it back in.

We can also add it back if somebody has an alternate suggestion for a
3rd party solution that is a simply drop-in replacement, portable,
lightweight dependency, with compatible license. A good compromise
might be this one: https://github.com/jeremy-rifkin/cpptrace
But I think what I'm proposing is that we accept this PR first, get
rid of boost, then we can come back to looking at cpptrace as potentially
a way to restore the functionality prior to C++23.

Signed-off-by: Larry Gritz <[email protected]>
Copy link
Contributor

@fpsunflower fpsunflower left a comment

Choose a reason for hiding this comment

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

LGTM!

@lgritz lgritz merged commit ab87887 into AcademySoftwareFoundation:master Apr 12, 2024
23 of 24 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 13, 2024
To shed the boost dependency, we are disabling stacktrace for now. It's
not vital and probably not worth keeping boost just for that.

C++23 has std::stacktrace, so as compilers add support for this, we will
phase it back in.

We can also add it back if somebody has an alternate suggestion for a
3rd party solution that is a simply drop-in replacement, portable,
lightweight dependency, with compatible license. A good compromise might
be this one: https://github.com/jeremy-rifkin/cpptrace But I think what
I'm proposing is that we accept this PR first, get rid of boost, then we
can come back to looking at cpptrace as potentially a way to restore the
functionality prior to C++23.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz deleted the lg-stacktrace branch April 13, 2024 17:11
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