LLVM build failure when using CMake

Recently I have been getting a build failure while trying to link lli when performing a cmake based build. The failure is:

Undefined symbols:
“_LLVMLinkInMCJIT”, referenced from:
(anonymous namespace)::ForceMCJITLinking::ForceMCJITLinking()in lli.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bin/lli] Error 1

I have fixed this with the attached patch. It anybody else getting this error? Should I commit the patch?

mcjit.patch (878 Bytes)

Wesley Peck <peckw@wesleypeck.com> writes:

[snip]

I have fixed this with the attached patch. It anybody else getting
this error? Should I commit the patch?

Yes, please.

[snip]

Committed in 119589.
-- Wesley Peck