Skip to content

fix: x86 support for Windows - #2847

Open
bitsandfoxes wants to merge 19 commits into
mainfrom
fix/windows-x86-native-support
Open

fix: x86 support for Windows#2847
bitsandfoxes wants to merge 19 commits into
mainfrom
fix/windows-x86-native-support

Conversation

@bitsandfoxes

@bitsandfoxes bitsandfoxes commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #2845 and is somewhat of a follow-up on #2514
This adds the missing x86 native support for Windows by extending the package with an x86 build of sentry-native.

We're going for Windows-only here. Unity marked the Linux x86 and Linux Universal build targets as deprecated in 2018.3.

bitsandfoxes and others added 10 commits September 10, 2026 16:04
Native crash capture never worked on Windows with the Mono scripting
backend. Mono probes the calling assembly's own folder first, so
`DllImport("sentry")` from `Sentry.Unity.Native.dll` resolved to the
managed `Sentry.dll` sitting beside it in `Managed/` on a
case-insensitive file system. That load succeeds, the C entry point is
missing, and native support dies with an `EntryPointNotFoundException`
that only surfaces when the diagnostic logger is enabled.

The desktop library now ships renamed. `native-sdks.targets` writes it
out as `sentry-native.dll`, `libsentry-native.so` and
`libsentry-native.dylib` while the SDK is built, so the package already
carries the new names and the post-build step stays a plain copy. Debug
sidecars keep the names their binaries record.

Android cannot follow. Its `libsentry.so` comes from the
sentry-android-ndk AAR and sentry-java loads it by name from Java, so it
gets its own `Sentry.Unity.Native.Android.dll`, built from the same
sources with a define the way the console variants already are.

Closes #2818

Co-authored-by: Lou Garczynski <louis.roc@gmail.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A1tV2g8KkFQGYdCGLWSay6

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 46fd252. Configure here.

Comment thread .github/workflows/ci.yml Outdated
Base automatically changed from fix/native-library-name-clash to main September 14, 2026 09:47
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.

1 participant