Skip to content

Building rustc without using the system defaults #12097

Closed
@marcbowes

Description

@marcbowes

There are use-cases where one might want to build rustc from source without having the build process use the default system gcc/glibc.

Right now, I can't see a way to achieve this with a flag. One possible solution is to create a wrapper script for the stage0 rustc which calls the real stage0 rustc with --link-args, --linker and so forth.

The reason I don't like this is it essentially involves a prebuild/patch step - these are usually quite brittle and difficult to maintain.

A possible future solution might be to have some env var, STAGE0_FLAGS or similar, which one could export before running make.

/cc @cmr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions