Fix a bug that can't add library MSA specific build option.
authorwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 8 Nov 2006 02:40:27 +0000 (02:40 +0000)
committerwuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 8 Nov 2006 02:40:27 +0000 (02:40 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1911 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/GenBuild/org/tianocore/build/fpd/FpdParserTask.java

index 719359af596d6ceff2cbe6260386744f60a12b4b..9a4d93a89bbecd1ffb6ecb0507e194c6ecb414ec 100644 (file)
@@ -529,6 +529,14 @@ public class FpdParserTask extends Task {
             GlobalData.addMsaBuildOption(moduleId, parseMsaBuildOptions(false));\r
             GlobalData.addMsaFamilyBuildOption(moduleId, parseMsaBuildOptions(true));\r
     \r
+            ModuleIdentification[] libraryInstances = saq.getLibraryInstance(null);\r
+            for (int i = 0; i < libraryInstances.length; i++) {\r
+                saq.push(GlobalData.getDoc(libraryInstances[i], fpdModuleId.getArch()));\r
+                GlobalData.addMsaBuildOption(libraryInstances[i], parseMsaBuildOptions(false));\r
+                GlobalData.addMsaFamilyBuildOption(libraryInstances[i], parseMsaBuildOptions(true));\r
+                saq.pop();\r
+            }\r
+            \r
             saq.pop();\r
         }\r
     }\r