Is this the main benefit after Fast Compiles is enabled? #9397
Unanswered
dominikj111
asked this question in
Q&A
Replies: 1 comment 2 replies
-
On MacOS, you could also use the The |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was setting the fast compiles on my MacOS machine.
First impression wasn't really positive as I've spent couple hours to sort it out.
I carried on as written in Bevy documentation and did bash profile tweaks as documented in the
llvm
package installation.I summarised the process on reddit.
On the end I was missing the last step which was to set the
rustflags
in theconfig.toml
file. And this step is missing in the documentation and I think it is crucial.After 20 trials of the
cargo build --target x86_64-apple-darwin
withrustflags = ["-C", "link-arg=-fuse-ld=lld"]
and without, the average build time with the rustflags was 0.94s and without 1.65s.I was testing upon small "hello world" project and I think that for bigger project the difference between both times will grow.
Am I right?
Is there another way how to confirm that fast compiles works correctly?
Beta Was this translation helpful? Give feedback.
All reactions