Skip to content

build-std is not passing to cargo if falling back to host #1590

@zonyitoo

Description

@zonyitoo

Checklist

Describe your issue

I was trying to build for target mips-unknown-linux-musl with cross with latest master. Build with Cross.toml setting:

[target.mips-unknown-linux-gnu]
build-std = ["std", "panic_abort", "proc_macro"]

But no -Zbuild-std=std,panic_abort,proc_macro in the final command line.

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

mips-unknown-linux-gnu

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

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.5 (4090bec 2024-10-15)

Example

$ cross build --target "mips-unknown-linux-musl" --bin ssservice --features "full-extra" --release --verbose
+ cargo metadata --format-version 1 --filter-platform mips-unknown-linux-musl --features full-extra
[cross] warning: `cross` does not provide a Docker image for target mips-unknown-linux-musl, specify a custom image in `Cross.toml`.
[cross] note: Falling back to `cargo` on the host.
+ cargo build --target mips-unknown-linux-musl --bin ssservice --features full-extra --release --verbose
       Fresh unicode-ident v1.0.14
   Compiling cfg-if v1.0.0
... OTHER UNRELATED LOGS...

Additional information / notes

No response

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