Skip to content

use gold instead of bfd on Linux if it's available #14560

@thestinger

Description

@thestinger

This is what clang does on Linux, by detecting the existence of /usr/bin/ld.gold and then using it. This can be done with gcc by passing -fuse-ld=gold. It's a much faster linker and doesn't consume as much memory, so it will reduce the compiler's peak memory consumption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-compiletimeIssue: Problems and improvements with respect to compile times.O-linuxOperating system: Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions