[clang] [clang][deps] Collect discovered module dependencies' Link Libraries (PR #93588)

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 3 11:19:24 PDT 2024


================
@@ -138,6 +139,14 @@ struct ModuleDeps {
   /// determined that the differences are benign for this compilation.
   std::vector<ModuleID> ClangModuleDeps;
 
+  /// The set of libraries or frameworks to link against when
+  /// an entity from this module is used.
+  llvm::SmallVector<Module::LinkLibrary, 2> LinkLibraries;
+
+  /// Autolinking uses the framework name for linking purposes
+  /// when this is false and the export_as name otherwise.
+  bool UseExportAsModuleLinkName;
----------------
benlangmuir wrote:

Right, the question in my mind is if we should model that in the scanner or change the modulemap code to drop the LinkLibraries.  I don't know why it was originally modeled as a flag handled in codegen instead of changing the LinkLibraries.

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


More information about the cfe-commits mailing list