cargo-zigbuild icon indicating copy to clipboard operation
cargo-zigbuild copied to clipboard

cargo-zigbuild doesn't seem to utilize cargo config

Open TheButlah opened this issue 1 year ago • 1 comments

in .cargo/config.toml you can do:

[build]
target = "aarch64-unknown-linux-gnu"

Cargo zigbuild doesn't appear to actually use this value, because it errors if I don't pass --target aarch64-unknown-linux-gnu

error occurred: Failed to find tool. Is `aarch64-linux-gnu-gcc` installed?

But explicitly passing the --target works.

TheButlah avatar Feb 09 '24 20:02 TheButlah

Only rustflags is read from cargo config currently.

messense avatar Feb 16 '24 01:02 messense