-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of environment variables can make use of .cargo/config
impossible
#463
Comments
Ah I should note that most of this is only a problem due to rust-lang/cargo#5376 |
464: aarch64-unknown-linux-musl: do not set RUSTFLAGS r=reitermarkus a=jonas-schievink rust-lang/rust#46651 has been fixed, and this helps with #463 Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Jonas Schievink <[email protected]>
464: aarch64-unknown-linux-musl: do not set RUSTFLAGS r=reitermarkus a=jonas-schievink rust-lang/rust#46651 has been fixed, and this helps with #463 Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Jonas Schievink <[email protected]>
This is fixable by using the environment variable passthrough, or by extending the Docker image (less than ideal). It might be a good idea to allow overrides of these variables in We currently allow overriding the runner (sort of), but it might be good to also add keywords to override the linker and rustflags. Lines 29 to 35 in c8df353
|
#682 would help for this |
The Docker containers used by cross set various environment variables that cannot be overridden in any way. This causes various issues, because this makes Cargo silently ignore the configuration from
.cargo/config
.On
x86_64-unknown-linux-musl
,cross
setsCARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER
. This makes it impossible to use a custom linker wrapper by setting thelinker
key. Instead, I had to use therustflags
key to pass-Clinker
.On
aarch64-unknown-linux-musl
,cross
setsCARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER
as well asRUSTFLAGS
(!), which makes it impossible to use a custom linker without replacing rustc with a custom wrapper (which can be made to work by setting theRUSTC
env var, but is a lot of work and a pretty gross hack).The text was updated successfully, but these errors were encountered: