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

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

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

fw-immunant
Copy link
Contributor

@fw-immunant fw-immunant commented Apr 1, 2024

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

on my (Arch) Clang 17 installation there is no directory named the full version number in /usr/lib/clang

I don't know if this is better guaranteed but it seems on Donna we have directories there named after both major and entire version numbers for Clangs 11-14, so using only major seems the safest bet

hopefully if this is a mistake CI will notice
@fw-immunant fw-immunant force-pushed the fw/fix-resource-dir branch from 2efae0d to e87ca96 Compare April 1, 2024 21:48
@fw-immunant
Copy link
Contributor Author

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

@fw-immunant fw-immunant merged commit f3b5623 into master Apr 2, 2024
9 checks passed
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 this pull request may close these issues.

2 participants