Hey! I can't seem to be able to run cargo test --all
properly on my machine, as doing so consumes all my RAM, some tests don't run at all. Cargo complains that some sub builds processes fail, and it's likely LD that consumes too much RAM and then fails. Is there a way to run all the tests nevertheless, or specify an alternative linker that would consume less ram?
would something like cargo test --all --jobs=1
help?
Likely yes, thanks. I could try to identify which subset of tests need a lesser number of jobs, so as to still be able to run other tests in parallel.
You might also be able to get by with turning down debuginfo which is probably most of the cause of the blowup. I think seeing CARGO_PROFILE_{DEV,TEST}_DEBUGINFO=0
should work
Last updated: Dec 23 2024 at 13:07 UTC