cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.8k stars 379 forks source link

CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS is unused key(s) #1558

Closed xdestiny110 closed 2 months ago

xdestiny110 commented 2 months ago

Checklist

Describe your issue

Cross.toml

[target.x86_64-unknown-linux-musl]
image = "musl-openssl:1.0"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS = ["-C target-feature=-crt-static"]

When I use cross build --target x86_64-unknown-linux-musl --release, it says

[cross] warning: found unused key(s) in Cross configuration
 > target.x86_64-unknown-linux-musl.cargo_target_x86_64_unknown_linux_musl_rustflags

How can I setup rustflags in order to compile cdylib in musl?

What target(s) are you cross-compiling for?

No response

Which operating system is the host (e.g computer cross is on) running?

What architecture is the host?

What container engine is cross using?

cross version

cross 0.2.5 (d8631fe 2024-08-17)

Example

No response

Additional information / notes

No response

Emilgardis commented 2 months ago

Just set the environment variable RUSTFLAGS like normal!