mirror of https://github.com/acidanthera/audk.git
BaseTools: AutoGen - use dafultdict instead of dict
since we manually make each entry a set(), just use defaultdict(set) Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
dc2c30ef92
commit
992fbe3519
|
@ -355,10 +355,9 @@ class WorkspaceAutoGen(AutoGen):
|
|||
# but the path (self.MetaFile.Path) is the real path
|
||||
for key in self.FdfProfile.InfDict:
|
||||
if key == 'ArchTBD':
|
||||
MetaFile_cache = {}
|
||||
MetaFile_cache = defaultdict(set)
|
||||
for Arch in self.ArchList:
|
||||
Current_Platform_cache = self.BuildDatabase[self.MetaFile, Arch, Target, Toolchain]
|
||||
MetaFile_cache[Arch] = set()
|
||||
for Pkey in Current_Platform_cache.Modules:
|
||||
MetaFile_cache[Arch].add(Current_Platform_cache.Modules[Pkey].MetaFile)
|
||||
for Inf in self.FdfProfile.InfDict[key]:
|
||||
|
|
Loading…
Reference in New Issue