Repository navigation
Make native the default crash backend on Windows, Linux and Xbox - #1717
Draft
tustanivsky wants to merge 12 commits into
Draft
tustanivsky wants to merge 12 commits into
tustanivsky wants to merge 12 commits into
Conversation
1 of 6 tasks
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces the
UseNativeBackendbool with aCrashBackendenum (Auto,Native,Platform) and makes the native backend the default on Windows, Linux and Xbox.A bool can't express "native by default, but Cocoa on macOS", and
Autoallows changing per-platform defaults later without touching saved settings.Key Changes
UseNativeBackendis removed and no longer read. Projects that set it need to switch toCrashBackend(covered in the migration guide).Auto(default) resolves to native on Windows, Linux and Xbox, and Cocoa on macOS.Platformkeeps Crashpad, Breakpad or Cocoa.Nativeforces native everywhere it's supported.Build.csresolves the backend to link from the same setting. The config value is matched case-insensitively, like the engine does at runtime. Console extensions resolve their backend in their ownBuild.cs.USentrySettings::IsNativeBackendEnabled(). A runtime selection that differs from the linked backend remains possible, as before.CrashBackend=Auto. CI builds the default backend first and then switches to the alternative one (Platformon Windows/Linux,Nativeon macOS). Console jobs set the backend explicitly.Documentation