mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
BaseTools: Fixed the issue of the CFlag for compile PcdValueInit.c
This issue happens when using Structured PCD. Build tool use set to store the cflags for compile PcdValueInit.c, that is the order of cflags is disorder. This patch make -U, /U flags appear before -D, /D Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
f527942e6b
commit
1d06b46cf1
@ -2668,7 +2668,8 @@ class DscBuildData(PlatformBuildClassObject):
|
||||
elif len(ArchBuildOptions.keys()) > 1:
|
||||
CommonBuildOptions = reduce(lambda x,y: x&y, ArchBuildOptions.values())
|
||||
BuildOptions['COMMON'] |= CommonBuildOptions
|
||||
ValueList = list(BuildOptions['COMMON'])
|
||||
ValueList = [item for item in BuildOptions['COMMON'] if item.startswith((r"/U","-U"))]
|
||||
ValueList.extend([item for item in BuildOptions['COMMON'] if item.startswith((r"/D", "-D"))])
|
||||
CC_FLAGS += " ".join(ValueList)
|
||||
MakeApp += CC_FLAGS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user