Repository navigation
Default to hot swapping on Linux as on Windows - #2628
Merged
Merged
Conversation
The AllowHotSwapping default was '(platformType == .Windows) && !isRelease', from when WinDebugger was the only backend that could hot swap. The LLDB backend can now, so a Linux debug config defaults to it too. Reading the platform directly would also catch a Linux platform selected from a Windows host, which is WSL. Those launch through '@gdb_wsl' and so never reach the LLDB backend, so the condition goes through a SupportsHotSwapping property that excludes them. Three places decide this and they now agree: SetupDefault, which is what a workspace with nothing stored gets, and the load and save defaults either side of it. The sibling Windows-only options next to them (EnableRealtimeLeakCheck, EnableSideStack) are untouched, and a workspace that already stores AllowHotSwapping keeps what it stored. With this, IDE/Tests/Test1 goes from 24/41 to 41/41 on Linux with an unmodified BeefSpace.toml; previously every HotSwap_* script failed with "Hot Compilation is not enabled". Depends on the LLDB hot compile support in beefytech#2527; without that the Linux default would turn on a backend that cannot service it.
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.
AllowHotSwappingdefaulted to(platformType == .Windows) && !isRelease, from when WinDebugger was the only backend that could hot swap. Since #2527 the LLDB backend can too, so a Linux debug config now defaults to it.A Linux platform selected from a Windows host is WSL, which launches through
@gdb_wsland never reaches the LLDB backend, so the condition goes through a newPlatformType.SupportsHotSwappingthat excludes it.The three places that decide the default now agree:
SetupDefault, and the load and save defaults. The neighbouring Windows-only options (EnableRealtimeLeakCheck,EnableSideStack) are untouched, and a workspace that already storesAllowHotSwappingkeeps what it stored.Without this, every
HotSwap_*script in IDE/Tests/Test1 fails on Linux with "Hot Compilation is not enabled" unless the workspace enables it explicitly.