Fixed variable access issue
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 1 Feb 2008 03:08:01 +0000 (03:08 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 1 Feb 2008 03:08:01 +0000 (03:08 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@995 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/EdkIIWorkspaceBuild.py

index 61d849b..9304ec9 100755 (executable)
@@ -571,6 +571,8 @@ class WorkspaceBuild(object):
                 for Item in Platform.Libraries.LibraryList:\r
                     for ItemArch in Item.SupArchList:\r
                         Library = self.InfDatabase[Item.FilePath]\r
+                        if ItemArch not in Library.Module.Header:\r
+                            continue\r
                         Pb.Libraries[Library.Module.Header[ItemArch].Name] = Item.FilePath\r
                 \r
                 #\r