-
Notifications
You must be signed in to change notification settings - Fork 419
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
Added CMake support for SVF #8
Conversation
Hi Rasmus, It seems that your patch does not support out-of-tree project cmake. Could you please help us make one based on your patch? It would be good that you could make some notes about the steps and command line options for the cmake. Thanks |
Hi Yulei, sorry about that - our LLVM build is somewhat modified so we just have SVF in the projects folder - I'll look into it and see how to support out-of-source builds as well. Best regards, Rasmus |
Hi Yulei, I have added support for building SVF out of source (it is still possible to build in source by placing the SVF dir inside the projects/ dir). All you have to do to build SVF with CMake now is:
This will produce both the wpa and saber binaries (placed in the /bin folder) and the shared libraries so that other projects can include the SVF pass. I added an explicit check and warning if the LLVM_DIR is not set as the default message might not make a sense, if a user forgets to add the environmental variable. Best, Rasmus |
Hi Rasmus, Awesome! thanks a lot for the out-of-tree patch:) Before I merge your pull request, could you please make the following small changes to your patch. (1) Please separate the cmake config files and CUDD file deletions into two patches. Best, |
Hi Yulei, I added the flags to suppress the warnings of CUDD and I think I was able to update the git history to contain the commits we need:
Hope it works :-) /Rasmus |
Hi Rasmus, Perfect! Thanks for your contribution. Best, |
Thank you both! 👍 |
As requested, here is a PR for including CMake support for SVF for LLVM 3.8.