return GetModuleLibInstances(Module, Platform, BuildDatabase, Arch, Target, Toolchain)\r
\r
def GetModuleLibInstances(Module, Platform, BuildDatabase, Arch, Target, Toolchain, FileName = '', EdkLogger = None):\r
+ if Module.LibInstances:\r
+ return Module.LibInstances\r
ModuleType = Module.ModuleType\r
\r
# add forced library instances (specified under LibraryClasses sections)\r
# The DAG Topo sort produces the destructor order, so the list of constructors must generated in the reverse order\r
#\r
SortedLibraryList.reverse()\r
+ Module.LibInstances = SortedLibraryList\r
+ SortedLibraryList = [lib.SetReferenceModule(Module) for lib in SortedLibraryList]\r
return SortedLibraryList\r