Skip to content

Conversation

gpalino
Copy link
Contributor

@gpalino gpalino commented Sep 3, 2024

I've updated cmake conditions, to allow libbacktrace usage under mingw64. And fixed one compilation issue.
Tested with package https://packages.msys2.org/package/mingw-w64-x86_64-libbacktrace
with this setup:

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCPPTRACE_GET_SYMBOLS_WITH_LIBBACKTRACE=On

@jeremy-rifkin
Copy link
Owner

jeremy-rifkin commented Sep 3, 2024

Hi thanks so much for doing this! I was never able to get libbacktrace working on mingw. I think I made a mistake with program_name that will block this PR, currently it returns a std::string on windows and const char* elsewhere. It would be good to have it just return const char* on windows too. If you’re able to fix that as part of this PR I’d appreciate it, otherwise I can fix it on dev.

Copy link
Owner

@jeremy-rifkin jeremy-rifkin left a comment

Choose a reason for hiding this comment

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

Thanks so much! Looks good to me.

@jeremy-rifkin jeremy-rifkin changed the base branch from main to dev September 4, 2024 00:52
@jeremy-rifkin jeremy-rifkin merged commit 26093d5 into jeremy-rifkin:dev Sep 4, 2024
78 of 79 checks passed
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