Skip to content
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

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

Open
TheButlah opened this issue Feb 9, 2024 · 1 comment
Open

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

TheButlah opened this issue Feb 9, 2024 · 1 comment

Comments

@TheButlah
Copy link

TheButlah commented Feb 9, 2024

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
Copy link
Member

Only rustflags is read from cargo config currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants