Update GenBuild to append FLAGS from FPD files to the FLAGS defined in tools_def.txt

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1657 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2006-10-04 23:01:10 +00:00
parent 0923e8b3b2
commit e04a8a9aae
1 changed files with 13 additions and 4 deletions

View File

@ -488,10 +488,19 @@ public class GenBuildTask extends Ant {
// //
key[4] = ToolDefinitions.TOOLS_DEF_ATTRIBUTE_FLAGS; key[4] = ToolDefinitions.TOOLS_DEF_ATTRIBUTE_FLAGS;
String cmdFlags = GlobalData.getCommandSetting(key, fpdModuleId); String cmdFlags = GlobalData.getCommandSetting(key, fpdModuleId);
Set<String> addset = new LinkedHashSet<String>(); if (cmdFlags != null)
Set<String> subset = new LinkedHashSet<String>(); {
putFlagsToSet(addset, cmdFlags); // Set<String> addset = new LinkedHashSet<String>();
getProject().setProperty(cmd[m] + "_FLAGS", getProject().replaceProperties(getFlags(addset, subset))); // Set<String> subset = new LinkedHashSet<String>();
// putFlagsToSet(addset, cmdFlags);
// getProject().setProperty(cmd[m] + "_FLAGS", getProject().replaceProperties(getFlags(addset, subset)));
getProject().setProperty(cmd[m] + "_FLAGS", cmdFlags);
}
else
{
getProject().setProperty(cmd[m] + "_FLAGS", "");
}
// //
// Set CC_EXT // Set CC_EXT