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::rustc-check-cfg breaks build for older Cargo versions #837

Closed
arctic-alpaca opened this issue May 15, 2024 · 0 comments · Fixed by #838
Closed

cargo::rustc-check-cfg breaks build for older Cargo versions #837

arctic-alpaca opened this issue May 15, 2024 · 0 comments · Fixed by #838

Comments

@arctic-alpaca
Copy link
Contributor

Hi,

this commit added cfg checking via cargo::rustc-check-cfg. Older versions of Cargo will fail with the following error:

error: unsupported output in build script of `defmt v0.3.7`: `cargo::rustc-check-cfg=cfg(c_variadic)`
Found a `cargo::key=value` build directive which is reserved for future use.
Either change the directive to `cargo:key=value` syntax (note the single `:`) or upgrade your version of Rust.
See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script for more information about build script outputs.

Changing this to cargo:rustc-check-cfg fixes the issue.

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

Successfully merging a pull request may close this issue.

1 participant