/D and -D flags have been added. So, /U and -U flags should be added.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
ValueList = Value.split()\r
if ValueList:\r
for Id, Item in enumerate(ValueList):\r
- if Item == '-D' or Item == '/D':\r
+ if Item in ['-D', '/D', '-U', '/U']:\r
CC_FLAGS += ' ' + Item\r
if Id + 1 < len(ValueList):\r
CC_FLAGS += ' ' + ValueList[Id + 1]\r
- elif Item.startswith('/D') or Item.startswith('-D'):\r
+ elif Item.startswith(('-D', '/D', '-U', '/U')):\r
CC_FLAGS += ' ' + Item\r
MakeApp += CC_FLAGS\r
\r