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

fix: Fix clang ast can not find the std headers in some systems #47

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

littleGnAl
Copy link
Contributor

In some systems, if the llvm path spefic to the PATH environment variables, the clang AST will run with error that can not find the std headers, e.g.,
/opt/homebrew/opt/llvm@15/include/c++/v1/stdio.h:107:15: fatal error: 'stdio.h' file not found.
So we filter the llvm path from the PATH to run the clang AST, it's a little tricky but for a workaround.

@guoxianzhe guoxianzhe merged commit c08bdcf into main Dec 22, 2023
3 checks passed
@guoxianzhe guoxianzhe deleted the littlegnal/override-env-when-run-clang branch December 22, 2023 09:41
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