bevy-website icon indicating copy to clipboard operation
bevy-website copied to clipboard

Better documentation of installing alternative linker in setup guide

Open chrisburnor opened this issue 5 years ago • 1 comments

I like that the Bevy Guide provides directions for a better linker in the setup guide.

However as the documentation stands, $YOUR_WORKSPACE is unclear across platforms and there is no way to verify if the config is working or not.

chrisburnor avatar Oct 13 '20 02:10 chrisburnor

For verifying: Hi you can use --verbose when running cargo run which can tell if you are using lld or not. And lld are for linux and windows and for osx there is something called zld which can be used as linker. Its mentioned on "Enable Fast Compiles" at the time of writing.

$YOUR_WORKSPACE is just a folder where Cargo.toml resides.

By the way you can use lld as global config by modifying ~/.cargo/config. However I find global config using lld problematic for some project like substrate.

shirshak55 avatar Nov 15 '20 08:11 shirshak55