On 13 Nov 2012, at 11:54, Joseph Rushton Wakeling wrote:
The cluster is running Ubuntu 12.04, so LLVM 3.1 is not available in
package archives, only 3.0. Not to worry; I've downloaded the
clang+llvm-3.1 precompiled binaries from llvm.org and they're in
$HOME/opt/clanv+llvm.
Question is, how to invoke cmake so that the build process will look
for the libraries here. What I've found searching around online all
talks about editing the cmake setup files, which seems overkill when
AFAICS all I really need to do is make sure that an extra -I and -L
option is passed to the compiler during build time.
Setting the LLVM_CONFIG CMake variable to the path of the llvm-config
binary of the installation you want to use (e.g. using ccmake) should do
the trick.
By the way, even if 3.1 is preferred, LDC should work fine against LLVM
3.0 – the auto tester even runs it.
David
--