diff options
author | Liming Gao <liming.gao@intel.com> | 2018-05-04 13:28:10 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-05-07 15:24:30 +0800 |
commit | 5d9af6a55ae1fcd1bbd19b5c55f039e9556d5cec (patch) | |
tree | 906bdc52f696556687594267e6eea9a00b6c41af /BaseTools/Source/Python/Workspace/DscBuildData.py | |
parent | 40d32e79428b5b006ef213daf119224c9c0a59d5 (diff) | |
download | edk2-5d9af6a55ae1fcd1bbd19b5c55f039e9556d5cec.tar.gz edk2-5d9af6a55ae1fcd1bbd19b5c55f039e9556d5cec.tar.bz2 edk2-5d9af6a55ae1fcd1bbd19b5c55f039e9556d5cec.zip |
BaseTools: Retrieve /U and -U CC flags to structure PcdValueInit Makefile
/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>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DscBuildData.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/DscBuildData.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index 627a157926..8476543c53 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -2057,11 +2057,11 @@ class DscBuildData(PlatformBuildClassObject): ValueList = Value.split()
if ValueList:
for Id, Item in enumerate(ValueList):
- if Item == '-D' or Item == '/D':
+ if Item in ['-D', '/D', '-U', '/U']:
CC_FLAGS += ' ' + Item
if Id + 1 < len(ValueList):
CC_FLAGS += ' ' + ValueList[Id + 1]
- elif Item.startswith('/D') or Item.startswith('-D'):
+ elif Item.startswith(('-D', '/D', '-U', '/U')):
CC_FLAGS += ' ' + Item
MakeApp += CC_FLAGS
|