rust-embedded / riscv

Low level access to RISC-V processors
818 stars 160 forks source link

Tidy per-ext check-cfg flags #208

Closed jsgf closed 3 months ago

jsgf commented 3 months ago

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.

jsgf commented 3 months ago

This is a subset of #205, aside from (I think) handling the riscv{ext} cfg flags better.

jsgf commented 3 months ago

Ok rebased and just reduced to using a loop for per-ext checks.