[llvm-dev] Distributing llc and opt with own package?

Jonathan Roelofs via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 10 09:11:49 PST 2017



On 3/10/17 7:31 AM, Moritz Angermann via llvm-dev wrote:
> Hi,
>
> I was wondering, if someone could point me into the right direction,
> towards building just llc and opt (potentially 4.0 + patches) to distribute
> them in the interim with compiler?  The idea is that we’d like to pin our
> llvm ir code generator to a specific set of llc and opt tools, with
> potential patches applied, until we manage to get all those patches
> upstreamed.
>
> I’d like to find answers to the following question:
> - How trivially can I build just llc and opt into (maybe static?)
>   distributable binaries?

$ cmake path/to/llvm -DBUILD_SHARED_LIBS=OFF 
-DCMAKE_CXX_FLAGS=-static-libstdc++
$ make llc opt

> - Would generating them for multiple architectures pose any specific
>   complications?

Targets or hosts?


Jon

>
> Cheers,
>  Moritz
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded


More information about the llvm-dev mailing list