-
Notifications
You must be signed in to change notification settings - Fork 69
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
libclang detection fails on GitHub Action #121
Comments
This is probably because visual studio installs clang under Is this where your clang is locally or are you using the distribution from LLVM which is stored at |
I added the Visual Studio LLVM component directory to the search paths as part of the now released I downloaded the Visual Studio LLVM component on my Windows machine and |
Well, my script installs LLVM by KyleMayes/install-llvm-action (your GH Action script 😉) so I don't think it's about Visual Studio. |
Yes, I see that now. I tunnel visioned on the mention of VS in a previous comment. |
Could it try guessing by the global clang path, which is what my step does? 👀 |
Why this isn't working I don't know. I'll reopen the issue since it is a bug that should be fixed but I can't guarantee I'll get around to investigating it in a timely fashion. |
This also appears to be a problem on Azure Pipelines: mimblewimble/grin#3596 (comment) |
I've partially fixed this problem (for dynamic linking but not runtime linking) in
I removed setting the environment variables in the CI YAML for this crate as a demonstration of Not sure what's going on there, I'll try to take another crack at it this weekend. |
On my Windows machine, the LLVM is by default installed into |
It no longer seems necessary to set I was able to remove the last I'm going to close but if someone has a similar issue please open a new issue. |
Background: rust-lang/rust-bindgen#1797
I had to add this step:
... per the following line:
clang-sys/build/dynamic.rs
Line 149 in ddd3af5
It seems this is only problematic in GitHub Action, not sure why. It's not a problem in my Windows machine without that environment variable.
My current script: https://github.com/saschanaz/jxl-winthumb/blob/2fc12d454163c7096158f93b712ef9f51b6f1f4b/.github/workflows/ci.yml
The text was updated successfully, but these errors were encountered: