rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.35k stars 50 forks source link

cargo-zigbuild doesn't seem to utilize cargo config #226

Open TheButlah opened 5 months ago

TheButlah commented 5 months ago

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.

messense commented 5 months ago

Only rustflags is read from cargo config currently.