Fix footgun for Windows users in fast_config.toml
#14103
Merged
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.
Objective
config_fast_builds.toml
#13136 changed the default value of-Zshare-generics=n
to-Zshare-generics=y
on Windowsfast_config.toml
STATUS_ENTRYPOINT_NOT_FOUND
#1126 means that running dynamic builds, using LLD and sharing generics on Windows results in a cryptic error messageAs a result, a new Windows user following all recommendations for better compilation times is actually not able to compile Bevy at all.
Solution
-Zshare-generics=n
on Windows with a comment saying this is for dynamic linkingTesting
I verified that #1126 is still happening on the current nightly (1.80)
Additional Info
Maybe the website should mention this as well? The relevant snippet there looks like this:
so it kinda implies it's only for Linux? Which is not quite true, this setting works on macOS as well AFAIK