[LLVMdev] Problem building LLVM-GCC 4.0 Front End

Bill Wendling isanbard at gmail.com
Tue Oct 2 12:57:35 PDT 2007


On 10/2/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote:
> On Tue, 2007-10-02 at 11:47 -0700, Bill Wendling wrote:
> > Hi Napi,
> >
> > I always just specify it with the "--enable-llvm" command instead of
> > an environment variable. The doc might be wrong in this instance...
>
> In the directory obj, I did:
>
> % ../llvm-gcc4.0-2.1.source/configure --prefix=`pwd`/../install
> --program-prefix=llvm-
> --enable-llvm= /home/napi/proj/c2jvm/llvm/llvm-gcc/obj
> --enable-languages=c,c++
>
I didn't realize that you were pointing to "llvm-gcc" :-). Let's say
that you have your trees set up like so:

~/llvm-gcc
~/llvm

and the object directories are:

~/llvm-gcc.obj
~/llvm.obj

then you'd use:

--enable-llvm=~/llvm.obj

or set the environment variable to that.

-bw



More information about the llvm-dev mailing list