[llvm-dev] 32 bit architecture build

NAKAMURA Takumi via llvm-dev llvm-dev at lists.llvm.org
Thu May 18 04:42:33 PDT 2017


Give -DLLVM_BUILD_32_BITS=ON to cmake, assuming you are using x86-64.
Then, make sure you have i686 version of toolchain and libraries.
( g++ -m32 sample.cc ; works)

See also; http://bb.pgr.jp/builders/llvm-i686-linux-RA/builds/2008

Thanks, Takumi


On Thu, May 18, 2017 at 8:31 PM Aayushi Agrawal via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello
>
> I want to build 32 bit architecture llvm from source (llvm-3.9). But I do
> not know how to do it. Could somebody please guide me with this.
>
> When I run commands from following link - http://llvm.org/docs/CMake.html
> I get 64 bit architecture llvm.
>
> 1. Which commands should I run to get 32 bit architecture?
> 2. Are there any dependencies also which I need to compile for 32 bit
> architecture?
>
> Regards
> --
> Aayushi Agrawal
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170518/8ed87651/attachment.html>


More information about the llvm-dev mailing list