[LLVMdev] How to build the 32bit version of llvm in the ubuntu 64bit

Tim Northover t.p.northover at gmail.com
Sat Apr 27 01:04:16 PDT 2013


Hi Yao,

> I want to build the 32bit version of llvm in the ubuntu 64bit, need I add
> some parameter?

If you're using CMake, it's "-DLLVM_BUILD_32_BITS=ON". I couldn't see
an autotools equivalent after a quick grep. You might be able to do
something by adding "-m32" to CFLAGS or other hackery though.

Tim



More information about the llvm-dev mailing list