On Monday, 28 January 2019 at 13:04:08 UTC, Nicholas Wilson wrote:
Do you mean bitcode, LLVM IR or something different? The LDC
built against a given version of LLVM can link to
bitcode/compile LLMV IR, of that version.
Bitcode in this case, but I think your following answer applies
to IR/assembly/binary too.
Lowest LLVM it can be compiled against is 3.9. LDC's releases
are compiled against 7.0.1, but that doesn't stop you
downloading a release of the desired LLVM version and compiling
LDC against that.
All you need is a semi-recent CMake. Just git clone from our
github and run cmake, you'll need to provide the location of
the llvm-config binary as LLVM_CONFIG but thats it.
Okay, that answers it. Thank you.