search for: ax_llvm

Displaying 4 results from an estimated 4 matches for "ax_llvm".

Did you mean: 3a__llvm
2016 Mar 23
3
Using LLVM from Autoconf
I'm writing a C++ program that uses LLVM, and trying to build it with autotools. Thanks to Diego Novillo, there is an M4 macro that detects llvm-config: https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4 How do I use it? Given that I've written a basic configure.ac that can compile a basic C++ program, how do I modify it to make use of the macro? And should the macro be copied into the project directory as a separate file or pasted into configure.ac? I tried a Google search for how to inclu...
2016 Mar 23
0
Using LLVM from Autoconf
...:35 PM, Russell Wallace via llvm-dev <llvm-dev at lists.llvm.org> wrote: > I'm writing a C++ program that uses LLVM, and trying to build it with > autotools. Thanks to Diego Novillo, there is an M4 macro that detects > llvm-config: https://github.com/google/autofdo/blob/master/m4/ax_llvm.m4 > > How do I use it? Given that I've written a basic configure.ac that can > compile a basic C++ program, how do I modify it to make use of the macro? > And should the macro be copied into the project directory as a separate file > or pasted into configure.ac? I tried a Google...
2016 Mar 23
0
Building a program with LLVM on Unix
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 optim...
2016 Mar 23
5
Building a program with LLVM on Unix
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