Closed
Description
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.