-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#16530) sentry-native: Add option to enable the WER module support o…
…f crashpad * sentry-native: Add option to enable the WER module support of crashpad * sentry-native: Use patch from getsentry/sentry-native#816 instead
- Loading branch information
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
recipes/sentry-native/all/patches/sentry-native-903c17a.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From 903c17ae20888679caab1871cc74de577509452e Mon Sep 17 00:00:00 2001 | ||
From: Cyriuz <Cyriuz@users.noreply.github.com> | ||
Date: Mon, 13 Mar 2023 14:55:26 +0100 | ||
Subject: [PATCH] Allow setting CRASHPAD_WER_ENABLED when using system crashpad | ||
(#816) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 831e8e1..aeea09f 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -426,8 +426,9 @@ if(SENTRY_BACKEND_CRASHPAD) | ||
set(CRASHPAD_ENABLE_INSTALL ON CACHE BOOL "Enable crashpad installation" FORCE) | ||
endif() | ||
add_subdirectory(external/crashpad crashpad_build) | ||
+ | ||
if(CRASHPAD_WER_ENABLED) | ||
- add_compile_definitions(CRASHPAD_WER_ENABLED) | ||
+ add_dependencies(sentry crashpad::wer) | ||
endif() | ||
|
||
# set static runtime if enabled | ||
@@ -482,8 +483,9 @@ if(SENTRY_BACKEND_CRASHPAD) | ||
endif() | ||
endif() | ||
add_dependencies(sentry crashpad::handler) | ||
+ | ||
if(CRASHPAD_WER_ENABLED) | ||
- add_dependencies(sentry crashpad::wer) | ||
+ add_compile_definitions(CRASHPAD_WER_ENABLED) | ||
endif() | ||
elseif(SENTRY_BACKEND_BREAKPAD) | ||
option(SENTRY_BREAKPAD_SYSTEM "Use system breakpad" OFF) | ||
-- | ||
2.39.1.windows.1 |