Fast compile isn't working for me (Windows) #2630
-
When I try to use the fast compile setup I get the following linker error: fatal error LNK1189: library limit of 65535 objects exceeded I've followed the steps in the Enable Fast Compiles (Optional) section but when I add bevy = { version = "0.5.0", features = ["dynamic"] } to my Cargo.toml file this linker error happens. I am on Windows, and this happens with both the nightly and stable toolchains. Is there something else in the setup I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally figured it out. There were two things:
For 1 - It would be really helpful to people like me who skim and think they know what the book is saying to include a quick folder diagram showing something like:
For 2 - The repo should also change the config.toml file to disable share-generics in Windows (e.g. changing the line in the file to be Once I fixed these things fast compiles are working for me. |
Beta Was this translation helpful? Give feedback.
I finally figured it out. There were two things:
rustflags = ["-Zshare-generics=y"]
in the config.toml suggested by the Bevy bookFor 1 - It would be really helpful to people like me who skim and think they know what the book is saying to include a quick folder diagram showing something like:
For 2 - The repo should also change the config.toml file to disable share-generics in Windows (e.g. changing the line in the file to be
rustflags = ["-Zshare-generics=n"]
. It appears others have had this problem too and found this sol…