[LLVMdev] configure llvm for 32-bit build on a 64-bit system

Duncan Sands baldrick at free.fr
Fri Mar 4 12:38:03 PST 2011


Hi Junjie,

> I have TOT of llvm and it builds 64-bit without issues on my 64-bit
> ubuntu.  My question is how to build 32-bit llvm on my 64-bit ubuntu ?
> I've not found any configure options to specify that.

as well as "gcc -m32" and "g++ -m32" you may want to configure with
--build=i686-pc-linux-gnu

Ciao, Duncan.



More information about the llvm-dev mailing list