-
Notifications
You must be signed in to change notification settings - Fork 99
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
checking environment variable to find libclang #336
base: master
Are you sure you want to change the base?
Conversation
Where is the LLVM_ROOT environment variable used? I can't find a real reference to it in the LLVM source code. |
I don't know that it is used in LLVM but it seems a (loose) convention in cmake modules. Boost uses BOOST_ROOT, GTest uses GTEST_ROOT, dart uses DART_ROOT, ... |
For now I prefer to recommend using Ideally at some point we would have one variable to locate the LLVM root in one place but this variable would be the |
ideally, you would use the cmake files that come with llvm |
that's right ;) |
Oddly, even using
as mentioned above to force the use of LLVM/Clang 3.8, it still somehow ended up using LLVM 8 (with -I/usr/lib/llvm-8/include being the telltale sign) until I physically broke the LLVM8 install by renaming the directory with a trailing underscore, then it used my preferred version. Trying the suggested patch now. Any idea why this woulldn't work? I also had LLVM_ROOT set in my environment at the time (something I always do when configuring CMake projects). |
Why prefer LLVM 3.8 to LLVM 8? |
Only because I mistakenly thought that was the recommended version and didn't want two LLVM's taking up space. :) |
No description provided.