BaseTools: create and use a standard shared variable for '*'
add a variable for the string '*' and then use it instead of lots of '*' Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by : Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
@ -2315,11 +2315,11 @@ class DscBuildData(PlatformBuildClassObject):
|
||||
continue
|
||||
if Attr != "FLAGS":
|
||||
continue
|
||||
if Target == "*" or Target == self._Target:
|
||||
if Tag == "*" or Tag == self._Toolchain:
|
||||
if Target == TAB_STAR or Target == self._Target:
|
||||
if Tag == TAB_STAR or Tag == self._Toolchain:
|
||||
if 'COMMON' not in BuildOptions:
|
||||
BuildOptions['COMMON'] = set()
|
||||
if Arch == "*":
|
||||
if Arch == TAB_STAR:
|
||||
BuildOptions['COMMON'].add(self.BuildOptions[Options])
|
||||
if Arch in self.SupArchList:
|
||||
if Arch not in BuildOptions:
|
||||
|
Reference in New Issue
Block a user