[llvm] [llvm] revisions to `LLVM_ABI` export macro definitions (PR #144598)

Andrew Rogers via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 23 09:55:59 PDT 2025


andrurogerz wrote:

> I'm not sure what exactly is being proposed in that regard, but at least on Linux the standard dylib configuration produces both static libraries and dylibs, and that must continue working without having to recompile everything twice.

That should be the case for the Windows DLL as well. AFAICT, gating the export macro definitions on a single preprocessor definition would require two distinct `llvm-config.h` files: one for components that link with the static lib and another for components that link with the DLL. That would be a somewhat involved change that I don't think is worth blocking the interface annotations on.

https://github.com/llvm/llvm-project/pull/144598


More information about the llvm-commits mailing list