[llvm] [ORC] Add AutoImportGenerator for COFF dllimport auto-import (PR #203914)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 06:22:14 PDT 2026


================
@@ -167,6 +168,12 @@ static cl::list<std::string> WeakLibraries(
              "resolve to null"),
     cl::cat(JITLinkCategory));
 
+static cl::list<std::string> LibrariesAuto(
+    "auto-l",
+    cl::desc("Synthesize COFF __imp_ slots and thunks for symbols exported "
+             "by library X on demand"),
----------------
lhames wrote:

The bot failures look unrelated to me, but I'll re-run the CI checks tomorrow morning my time before merging.

I also noticed this option description, which I missed earlier. For consistency with the rest of the link-library options I'd recommend something like:

"Link against library X in the library search paths (auto-generate corresponding import library)".


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


More information about the llvm-commits mailing list