Skip to content

fix: exclude WER code from Xbox builds in native backend#1723

Merged
tustanivsky merged 2 commits into
masterfrom
fix/wer-xbox
May 14, 2026
Merged

fix: exclude WER code from Xbox builds in native backend#1723
tustanivsky merged 2 commits into
masterfrom
fix/wer-xbox

Conversation

@tustanivsky
Copy link
Copy Markdown
Collaborator

@tustanivsky tustanivsky commented May 14, 2026

This PR fixes Xbox build failures in the native backend caused by WER (Windows Error Reporting) code being compiled on Xbox, where werapi.h, registry APIs and WER APIs are not available in the GDK.

Xbox defines SENTRY_PLATFORM_WINDOWS (because it also defines _WIN32), which caused all existing SENTRY_PLATFORM_WINDOWS guards around WER-related code to evaluate as true. This PR adds exclusions to those guards to match the existing platform handling patterns already used elsewhere in the codebase.

Additionally, the CMake condition for the sentry-wer target has been updated.

Failing CI run: https://github.com/getsentry/sentry-xbox/actions/runs/25810318958/job/75848636085

#skip-changelog

Copy link
Copy Markdown
Collaborator

@jpnurmi jpnurmi left a comment

Choose a reason for hiding this comment

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

Oh no, not again… 😭

@tustanivsky tustanivsky merged commit af2abd1 into master May 14, 2026
99 of 100 checks passed
@tustanivsky tustanivsky deleted the fix/wer-xbox branch May 14, 2026 15:30
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