Skip to content

Use parallel LTO compilation with gcc #137403

@tacaswell

Description

@tacaswell

Feature or enhancement

Proposal:

Currently when building CPython with loto (./configure --with-lto) on linux with gcc gives a number of similar warnings:

lto-wrapper: warning: using serial compilation of 70 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information

To fix this pass the -flot=auto to allow gcc to run the lto jobs in parallel. If no value is passed the default in 1 at a time.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildperformancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions