immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.79k stars 219 forks source link

ast-exporter: use major, not full, version for clang resource dir #1075

Closed fw-immunant closed 3 months ago

fw-immunant commented 3 months ago

Without this patch, running c2rust-transpile built against Clang 17 produces errors caused by an inability to locate stddef.h.

fw-immunant commented 3 months ago

It looks like this is an upstream change as of Clang 17: https://reviews.llvm.org/D125860