Open Syst3mz opened 2 months ago
The guide also has a big warning that on Windows you must enable the performance optimizations (i.e. set opt-level = 3
at least for dependencies) or you'll get a linker error like the one you reported. Did you do that?
The comment that posted the mediafire link is almost surely a spam bot given that today many different accounts spammed that same message, sometimes all at the same time.
I had that problem too following the dynamic_linking instructions but I fixed it by replacing -Zshare-generics=y with -Zshare-generics=n.
for completeness sake here in my .cargo/config.toml
[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=n", "-Zthreads=0"]
and here is my profile settings in cargo.toml
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
[profile.release]
# codegen-units = 1
# lto = "thin"
[profile.wasm-release]
inherits = "release"
opt-level = "s"
strip = "debuginfo"
Note am using rust-lld linker here so make sure you have that installed.
Bevy version 0.14.1
The release number or commit hash of the version you're using.
Relevant system information
If you cannot get Bevy to build or run on your machine, please include:
What you did
According to the guide faster compile times can be achieved with dynamic linking. In search of that I enbled dynamic linking by adding the following to my
cargo.toml
:bevy = { version = "0.14.1", features = ["dynamic_linking"] }
What went wrong
X's are user path stuff, shouldn't be relevant but happy to reveal if needed.