Skip to content

Remove requirement for --target #25

Closed
@ehuss

Description

@ehuss

The current implementation requires --target to be specified. Building in "cross compile mode" is required because host dependencies (proc macro especially) must use the sysroot from the compiler.

I don't think this can be changed, but we should infer the --target flag if it is not specified. The problem is that the decision to enable "cross compile mode" is done too early (before it is known that the standard library will be built). We'll need to figure out some way to work around this.

The crux of the issue is that BuildConfig::requested_target needs to be set, but BuildConfig is constructed extremely early. Decisions like this will need to know if the standard library is being built.

I'm not sure how to deal with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    implementationImplementation exploration and tracking issuesstabilization blockerThis needs a resolution before stabilization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions