-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Add Crashpad Support on Windows #4351
Conversation
CHANGELOG.md
Outdated
@@ -45,6 +45,7 @@ | |||
- Dev: Added CMake Install Support on Windows. (#4300) | |||
- Dev: Changed conan generator to [`CMakeDeps`](https://docs.conan.io/en/latest/reference/conanfile/tools/cmake/cmakedeps.html) and [`CMakeToolchain`](https://docs.conan.io/en/latest/reference/conanfile/tools/cmake/cmaketoolchain.html). See PR for migration notes. (#4335) | |||
- Dev: Refactored 7TV EventAPI implementation. (#4342) | |||
- Dev: Added support for building with crashpad. See PR for build instructions. (#4351) |
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.
If this stays in CI this could be changed into a minor entry.
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.
It should stay in CI
for some reason zstd just doesn't run
Someone (crashpad) includes Windows.h before winsock2.h
Regarding 88827c4 and the build failure: https://stackoverflow.com/questions/5971332/redefinition-errors-in-winsock2-h tl;dr: you have to include |
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
This PR adds support for building with crashpad. Currently, only Windows is supported, though support for other platforms should only require minor modifications.
The behavior is as described in #4349. The only difference now is that it's using the crashpad fork from sentry (getsentry/crashpad, modifications). It's not enabled by default - you need to enable
BUILD_WITH_CRASHPAD
.Build instructions
To get meaningful minidumps, you need to have debug symbols enabled. So you need to build in
Debug
orRelWithDebInfo
.Here, we're building in
RelWithDebInfo
mode.RelWithDebInfo
mode:cmake --build .
crashpad_handler