diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-07-02 08:59:50 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-07-27 23:11:18 -0400 |
| commit | 01c6256178fb126d668045f3a1297e0f3491e985 (patch) | |
| tree | 0f3068a5ac3aa8ae4f1fadf49276e340f1456114 /src/rustllvm/CoverageMappingWrapper.cpp | |
| parent | f7dcfcd45bd019acf8c914c204ccae519c420adc (diff) | |
| download | rust-01c6256178fb126d668045f3a1297e0f3491e985.tar.gz rust-01c6256178fb126d668045f3a1297e0f3491e985.zip | |
Change debuginfo to default to 1 if `debug = true` is set
From [a conversation in discord](https://discordapp.com/channels/442252698964721669/443151243398086667/719200989269327882): > Linking seems to consume all available RAM, leading to the OS to swap memory to disk and slowing down everything in the process Compiling itself doesn't seem to take up as much RAM, and I'm only looking to check whether a minimal testcase can be compiled by rustc, where the runtime performance isn't much of an issue > do you have debug = true or debuginfo-level = 2 in config.toml? > if so I think that results in over 2GB of debuginfo nowadays and is likely the culprit > which might mean we're giving out bad advice :( Anecdotally, this sped up my stage 1 build from 15 to 10 minutes. This still adds line numbers, it only removes variable and type information. - Improve wording for debuginfo description Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
