[LLVMdev] Building LLVM as a shared library on MinGw (Makefiles)

Yaron Keren yaron.keren at gmail.com
Sat Aug 2 02:24:13 PDT 2014


While MinGW can auto-export public symbols of a DLL, I'd try to avoid this
approach since MinGW auto-exports ALL public symbols. For a large project
such as LLVM it may result in 10,000 or 100,000 exports instead of the 1000
actually required.

Yaron



2014-08-02 1:25 GMT+03:00 Óscar Fuentes <ofv at wanadoo.es>:

> Reid Kleckner <rnk at google.com> writes:
>
> > I didn't think it was possible to build an LLVM DLL on Windows, but maybe
> > I'm wrong.
>
> It is fairly easy with MinGW because gcc/ld can auto-(export/import) the
> symbols. It is not as robust as explicitly declaring the visible symbols
> (as VS requires) but it used to work well enough for creating an usable
> monolithic LLVM.dll.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140802/cff32d07/attachment.html>


More information about the llvm-dev mailing list