-
Notifications
You must be signed in to change notification settings - Fork 162
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
Tidy per-ext check-cfg flags #208
Conversation
This is a subset of #205, aside from (I think) handling the |
println!("cargo:rustc-check-cfg=cfg(riscv)"); | ||
println!("cargo:rustc-check-cfg=cfg(riscv32)"); | ||
println!("cargo:rustc-check-cfg=cfg(riscv64)"); | ||
for ext in ['i', 'e', 'm', 'a', 'f', 'd', 'g', 'c'] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this approach. Could you open a new PR with this modification, please? I think the rest of the crates are already fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I just recycled this PR.
Ok rebased and just reduced to using a loop for per-ext checks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ad8a0bb
Emit
cargo::rustc-check-cfg=CHECK_CFG
in build.rs so that they can be cross-checked even if cfg option itself isn't set.