Skip to content

Commit

Permalink
DscBuildData.py: set CC_FLAGS2 when running on Windows
Browse files Browse the repository at this point in the history
CC_FLAGS2 also needs to be set when running on Windows, otherwise the
wrong line is added and nmake fails when building using Visual Studio.

Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
  • Loading branch information
bexcran committed Apr 4, 2023
1 parent 34deebe commit fd9ae0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edk2basetools/Workspace/DscBuildData.py
Original file line number Diff line number Diff line change
Expand Up @@ -2895,6 +2895,7 @@ def GenerateByteArrayValue (self, StructuredPcds):
CC_FLAGS2 = LinuxCFLAGS2
if sys.platform == "win32":
CC_FLAGS = WindowsCFLAGS
CC_FLAGS2 = WindowsCFLAGS
BuildOptions = OrderedDict()
for Options in self.BuildOptions:
if Options[2] != EDKII_NAME:
Expand Down

0 comments on commit fd9ae0a

Please sign in to comment.