[llvm-dev] Building a program with LLVM on Unix
Diego Novillo via llvm-dev
llvm-dev at lists.llvm.org
Wed Mar 23 09:51:18 PDT 2016
There are several m4 macros that let you write autoconf detection for
llvm. I recently needed to implement one. Have a look here:
https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4
Diego.
On Wed, Mar 23, 2016 at 12:48 PM, Russell Wallace via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Building LLVM itself involves Cmake, but what's the best way to build a C++
> program that needs to link with the LLVM libraries?
>
> If you're trying to optimise for making life as easy as possible for users
> and people creating binary packages, in the normal course of events,
> autotools is recommended. But the tutorial mentions running llvm-config to
> get things like library paths - does autotools know how to do this?
>
> (I mostly use Windows, not as familiar with Unix, so please let me know if
> the question I'm asking is not quite the same as the question I should be
> asking.)
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
More information about the llvm-dev
mailing list