Add the missing build options.
authorlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 21 Aug 2009 05:55:21 +0000 (05:55 +0000)
committerlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 21 Aug 2009 05:55:21 +0000 (05:55 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1687 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/AutoGen/AutoGen.py

index ca95744..7cb8e51 100755 (executable)
@@ -1066,10 +1066,8 @@ class PlatformAutoGen(AutoGen):
         for Key in Options:
             Family = Key[0]
             Target, Tag, Arch, Tool, Attr = Key[1].split("_")
-            if Tool not in self.ToolDefinition:
-                continue
             # if tool chain family doesn't match, skip it
-            if Family != "":
+            if Tool in self.ToolDefinition and Family != "":
                 FamilyIsNull = False
                 if self.ToolDefinition[Tool].get(TAB_TOD_DEFINES_BUILDRULEFAMILY, "") != "":
                     if Family != self.ToolDefinition[Tool][TAB_TOD_DEFINES_BUILDRULEFAMILY]:
@@ -1091,6 +1089,7 @@ class PlatformAutoGen(AutoGen):
         # Build Option Family has been checked, which need't to be checked again for family.
         if FamilyMatch or FamilyIsNull:
             return BuildOptions
+        
         for Key in Options:
             Family = Key[0]
             Target, Tag, Arch, Tool, Attr = Key[1].split("_")