[llvm-dev] debug build busts memory

Martin Storsjö via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 26 12:18:20 PST 2019


On Tue, 26 Nov 2019, Reid Kleckner via llvm-dev wrote:

> On Tue, Nov 26, 2019 at 10:46 AM Keane, Erich via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>
>       I believe it is pretty clear that the stock ld linker is
>       basically unusable for our project without a sizable amount of
>       hardware.  I’ve typically found that using gold or lld fixes
>       this problem entirely.
>
>        
>
>       Perhaps we need to start having CMake detect the presence of lld
>       and use that if possible, else check for ‘gold’ and use it if
>       possible, and only THEN fall back on ld.
> 
> 
> +1, we should probably emit a warning if we have to fall back to ld.bfd.
> It's basically non-functional for large C++ apps.

At least when building in debug mode. In release mode, it's obviously 
slower than gold/lld, but not that much slower that I'd label it as 
non-functional.

// Martin


More information about the llvm-dev mailing list