]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Retrieve /U and -U CC flags to structure PcdValueInit Makefile
authorLiming Gao <liming.gao@intel.com>
Fri, 4 May 2018 05:28:10 +0000 (13:28 +0800)
committerLiming Gao <liming.gao@intel.com>
Mon, 7 May 2018 07:24:30 +0000 (15:24 +0800)
/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>
BaseTools/Source/Python/Workspace/DscBuildData.py

index 627a1579263c269a9e6af01b925b2006b867d1e2..8476543c535280cc16581fb6e9da7c2a4f5b3a3a 100644 (file)
@@ -2057,11 +2057,11 @@ class DscBuildData(PlatformBuildClassObject):
                         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