Thanks Duncan,
Incase anyone else is trying to do this, I was able to use Duncan's
hint plus the docs at
https://github.com/graydon/rust/wiki/Getting-started to come up with:
CXX='g++ -m32' CC='gcc -m32' CFLAGS=-m32 CXXFLAGS=-m32
LDFLAGS=-m32
./configure --disable-bindings --build=i686-apple-darwin
--host=i686-apple-darwin --target=i686-apple-darwin
--enable-targets=x86,x86_64,cbe --enable-optimized --enable-shared
--enable-jit
I don't know if all of these flags are needed but it works
-Keith
On Fri, Aug 19, 2011 at 1:39 AM, Duncan Sands <baldrick at free.fr>
wrote:> 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.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
--
keithsheppard.name