[PATCH] D87547: [MinGW][clang-shlib] Build by default on MinGW

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 9 13:59:07 PDT 2020


mstorsjo added a comment.

In D87547#2322643 <https://reviews.llvm.org/D87547#2322643>, @mati865 wrote:

>> How many exports does your DLL end up with - is it close to the 64k limit, or far from it? Is there maybe some other library that is linked in, that increases the number of exported symbols (=all), or does this DLL only export explicitly intended symbols with dllexport?
>
> 60995 with `cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib -DLLVM_ENABLE_PROJECTS="clang;lld" ../llvm-project/llvm` so it's very close.
> Another build where I don't have exact command line but it uses Clang+LLD and `LLVM_LINK_LLVM_DYLIB:BOOL=ON` has only 35125 exports.
>
> I'll try to dig a bit soonish (maybe enable clang-shlib only if LLVM is linked dynamically?) but you can revert it in meantime.

I looked at my recent cross-builds (built with llvm-mingw, i.e. libc++) with -DLLVM_ENABLE_ASSERTIONS=OFF -DLLVM_TARGETS_TO_BUILD="ARM;AArch64;X86", and I'm seeing ~64000 exports.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87547/new/

https://reviews.llvm.org/D87547



More information about the cfe-commits mailing list