Skip to content

Commit

Permalink
Enable CompilerPlugin to pass through BuildVars
Browse files Browse the repository at this point in the history
Doing so allows the SDE to set up the environment for the CI
build.
  • Loading branch information
Bret Barkelew authored and kenlautner committed Sep 19, 2022
1 parent 664c75f commit fbbf05f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pytool/Plugin/CompilerPlugin/CompilerPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def RunBuildPlugin(self, packagename, Edk2pathObj, pkgconfig, environment, PLM,
dp = DscParser()
dp.SetBaseAbsPath(Edk2pathObj.WorkspacePath)
dp.SetPackagePaths(Edk2pathObj.PackagePathList)
# MU_CHANGE [BEGIN] - Enable CompilerPlugin to pass through BuildVars
build_target = self._env.GetValue("TARGET")
dp.SetInputVars(self._env.GetAllBuildKeyValues(build_target))
# MU_CHANGE [END]
dp.ParseFile(AP_Path)
if "SUPPORTED_ARCHITECTURES" in dp.LocalVars:
SUPPORTED_ARCHITECTURES = dp.LocalVars["SUPPORTED_ARCHITECTURES"].split('|')
Expand Down

0 comments on commit fbbf05f

Please sign in to comment.