]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/MetaFileParser.py
BaseTools: Fix a bug for --pcd used in ConditionalStatement calculate
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / MetaFileParser.py
index 69bdf2161bec808410231458538cd6cdeba18cfa..2eb4c75e46587f8b7e238060abbfbd4b852ce971 100644 (file)
@@ -1245,6 +1245,8 @@ class DscParser(MetaFileParser):
             Macros.update(self._Symbols)\r
         if GlobalData.BuildOptionPcd:\r
             for Item in GlobalData.BuildOptionPcd:\r
+                if type(Item) is tuple:\r
+                    continue\r
                 PcdName, TmpValue = Item.split("=")\r
                 TmpValue = BuildOptionValue(TmpValue, self._GuidDict)\r
                 Macros[PcdName.strip()] = TmpValue\r