[LLVMdev] building LLVM for i386 under snow leopard
Duncan Sands
baldrick at free.fr
Thu Aug 18 22:39:50 PDT 2011
Hi Keith,
> Hello, Does anyone know how to build LLVM for the i386 architecture
> with snow leopard (this seems to have been the default for leopard).
> I've tried building with:
>
> ./configure CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch
> i386" OBJCFLAGS="-arch i386" --prefix=/Users/keith/share/
> --enable-shared --enable-jit&& make
>
> but I still end up with x86_64 binaries.
to get this effect on Linux I configure LLVM with --build=i686-pc-linux-gnu and
do
export CC="gcc -m32"
export CXX="g++ -m32"
Ciao, Duncan.
More information about the llvm-dev
mailing list