-
Notifications
You must be signed in to change notification settings - Fork 56
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
LLVMSwift as package dependency in Xcode #221
Comments
Hi @qmathe, Try adding the dependency using "Up to Next Minor" with version 0.7. The latest commit on |
I'm getting a similar error with LLVMSwift 0.8 when building with Xcode:
I have LLVM 11 installed with homebrew, and pkg-config script did succeed. |
Make sure the llvm files installed by brew are in your PATH. Then rerun the pkg-config. Also see #235. |
I do have |
Same problem for me. Any suggestions @matthewseaman? |
Somehow rerunning |
Do i need to use LLVM 11 instead? |
Also check that you don't have two version of LLVM installed at the same time, I guess some of my issues could've been cause by having |
|
Ok thanks, Max. I didn't have LLVM installed before using this package. It's a new machine and didn't even had Homebrew on it 😄 |
As far as I understand |
Ok, I need JIT. So I better use LLVM 11 then, remove 13 to make sure. |
Yes, I see it uses brew. Script runs fine though. But it must be because I installed LLVM 13 instead. Still weird it complains about missing headers and doesn't even pass compilation. |
Good way to diagnose could be by using |
|
It does give more info. But still strange. |
Oh wait. It said so to install pkg-config. That was it! Thanks for the help, Max! |
I have a Xcode 12.2 project where I would like to use LLVMSwift. I installed LLVM 9 with brew and followed Installation instructions. I then added LLVMSwift to my project with File > Swift Packages > Add Package Dependency…. The dependency references the latest commit on master.
When I compile my target, I get the following error:
LLVMSwift/Sources/llvmshims/src/shim.cpp:1:10: fatal error: 'llvm-c/Core.h' file not found
.From what I see in the output, flags defined in pkgconfig/cllvm.pc are missing. It's my first time using Swift Package Manager and I don't know how it interacts with pkg-config. Here is how cllvm.pc was generated:
The text was updated successfully, but these errors were encountered: