-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor Makefile and run.sh into build.jl
script
#1
Conversation
This is very cool, thanks a lot! |
Great!
Exactly. Also, this should work for different LLVM versions as @vchuravy asked (although we will need to add some switches to select the corresponding dialects for each version). Something not solved is how we can select the correct I would merge this now as it improves over the current fragile toolchain, but would consider an alternative in the future. |
I tried building on my machine without success.
This shouldn't necessarily block merging, though. Could you rebase on |
It seems like you are not linking against libLLVM and libMLIR but it should, since the flags
Do you mean your |
I have not, only
I was thinking on my fork would be easiest but I'm no git power user so there might be easier ways :) |
Weird, gonna try in a Docker container.
Rebased on top of your fork ;) |
Thank you! |
I've replaced the path literal for |
That doesn't fix it because the |
Weird, because in my machine is in uppercase. I've searched a lil bit and looks like Git is configured to be case insensitive. 🙃 I will change it now to |
I "reviewed" and "approved" this pr, does this mean you can merge? If yes, please do whenever you like. |
Co-authored-by: jumerckx <31353884+jumerckx@users.noreply.github.com>
i've refactored some stuff and now is ready to go! |
With this code, now bindings are automatically generated on package build (which happens just when the package is instantiated).
It uses
LLVM_full_jll
to generate the bindings, so no custom LLVM installation is needed. The version is set to LLVM 15 to maximize compatibility with Julia's LLVM (although maybe this is not needed). Some dialects are deactivated due to errors.The only custom thing that is needed currently is that⚠️ currently set to my machine's configuration). Edit it for your machine.
LLVM_full_jll
does not provide a libc++ build, so the-isysroot
flag needs to be added (