[PATCH] D109192: [WIP/DNM] Support: introduce public API annotation support
fortsnek9348 via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 10 09:25:27 PST 2021
fortsnek9348 added a comment.
Herald added a subscriber: luke957.
Amateur here who would also like LLVM DLLs on Windows. I've done my own build, with manually-annotated per-component DLLs, but seems there's some progress here too. Still going? It's November now.
Not really sure about the choices between per-component DLLs and N large DLLs. Right now, I just want fast link times in my project.
For the export macros, my current idea is to just include them in some common header like `Support/Compiler.h`, along with visibility. Not sure if that's a great idea, but these macros will be needed by all components anyway. The header could be generated by cmake.
One problem though, for others, will be global constructors for all those command line options. One monolithic DLL will unconditionally include every command line option in every tool, wouldn't it? That's another big fix to do.
That symbol limit might be a problem. But for the DLLs required for `opt`, I seems I only have 25k exports across the components. If necessary, I wonder if common + per-target DLLs would be reasonable.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109192/new/
https://reviews.llvm.org/D109192
More information about the llvm-commits
mailing list