Skip to content

gn: Simplify logic for finding Clang resource directory#5915

Open
pcc wants to merge 1 commit into
google:mainfrom
pcc:fix-build1
Open

gn: Simplify logic for finding Clang resource directory#5915
pcc wants to merge 1 commit into
google:mainfrom
pcc:fix-build1

Conversation

@pcc
Copy link
Copy Markdown
Contributor

@pcc pcc commented May 16, 2026

This code was using a convoluted way of determining the resource directory that doesn't always work (for example, the resource directory is not guaranteed to have a /clang/ component). Replace it with a call to clang -print-resource-dir.

@pcc pcc requested a review from a team as a code owner May 16, 2026 08:22
This code was using a convoluted way of determining the resource directory
that doesn't always work (for example, the resource directory is not
guaranteed to have a /clang/ component). Replace it with a call to
`clang -print-resource-dir`.
@LalitMaganti
Copy link
Copy Markdown
Member

What version of clang does this work for? Because I'm not certain this was necessarily always supported.

@pcc
Copy link
Copy Markdown
Contributor Author

pcc commented May 16, 2026

It's been supported since Clang 5: llvm/llvm-project@51208a3

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