Skip to content

LTO links lose the jobserver #2855

Description

@avikivity

01c35e6 says:

Almost nothing sccache spawns can use a jobserver. It reaches a child through
CARGO_MAKEFLAGS, and only rustc reads it: preprocessors, version probes and
C/C++ compilers all ignore it. So stop sharing by default and let the callers
that spawn rustc ask, via RunCommand::share_jobserver.

But clang/gcc can use the jobserver when running an LTO link. We should continue to pass the jobserver for those jobs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions