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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits