Does linking wgpu add 20 secs to incremental compile time?

I'm not sure if I'm doing something wrong. On wgpu/;wasm32-unknown-unknown, I get very fast incremental builds.

On wtgpu/x86_64, I'm getting 20 sec + incremental builds.

Is this normal, or am I doing something stupid ?

What feels wrong to me. Could you pass -Ztime-passes to rustc when compiling? That will give a (high level) overview of what takes so much time. You can use cargo rustc -- -Ztime-passes instead of cargo build to pass it to just the main crate rather than all dependencies like RUSTFLAGS would.

2 Likes

Good call. Was misconfigured lto / opt-level issue.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.