From fbbf05f159195a114b5cedab1c3317e73dfb6a35 Mon Sep 17 00:00:00 2001 From: Bret Barkelew Date: Thu, 17 Feb 2022 22:23:50 -0800 Subject: [PATCH] Enable CompilerPlugin to pass through BuildVars Doing so allows the SDE to set up the environment for the CI build. --- .pytool/Plugin/CompilerPlugin/CompilerPlugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pytool/Plugin/CompilerPlugin/CompilerPlugin.py b/.pytool/Plugin/CompilerPlugin/CompilerPlugin.py index 2c9697af0a..cdd38a0485 100644 --- a/.pytool/Plugin/CompilerPlugin/CompilerPlugin.py +++ b/.pytool/Plugin/CompilerPlugin/CompilerPlugin.py @@ -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('|')