Weihang Lo

Results 766 comments of Weihang Lo

I'd like to copy over [some proposals from ehuss](https://github.com/rust-lang/cargo/pull/6671#issuecomment-464202979) that was buried in a closed PR. Fundamentally this is more a UX issue than performance or technical issue. --- Method...

FWIW, Cabel community had a discussion a while back: https://github.com/haskell/cabal/issues/1529

Potentially the unstable rustc flag `-Zno-link` can separate linking phase from others (see ), and then Cargo can control the parallelism of linker invocations. Somebody needs to take a look...

FWIW, setting `split-debuginfo = "packed"` or `"unpacked"` on `profile` should reduce the memory usage of linker. My experiment results in half of the memory usage per invocation. Something we might...

Thanks. Reopened as it might need both #9019 and #12912, and maybe other upstream works from rust to make it happen.

FWIW, there is a `--no-keep-memory` flag for GNU linker. Haven't tried it but might help before we make some progress on this. https://linux.die.net/man/1/ld

https://github.com/rust-lang/rust/pull/117962 has made into nightly. It could alleviate the pain of linker OOM to some extent.

I am going to close due to lack of a minimal set of steps to reproduce, and it has been inactive for a while. Here are tips about [how to...

> Another variant of the above idea would be `RUSTFLAGS_BINARY` which would be `RUSTFLAGS` that apply to binary crates only. This would cover cases like PGO where you're just altering...