diff options
author | Bob Feng <bob.c.feng@intel.com> | 2021-12-24 22:50:08 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-28 08:39:25 +0000 |
commit | e910f076ad02c80bb69cebb18d51ef6896beee0d (patch) | |
tree | 73a39ca30a029167dabebe0db6f2f9538a94e933 /BaseTools | |
parent | 6612ff85611bc2be16dc0fd5de0e1413df88941a (diff) | |
download | edk2-e910f076ad02c80bb69cebb18d51ef6896beee0d.tar.gz |
BaseTools: Fix the bug of --cmd-len build option
currently the --cmd-len build option does not work.
This patch is going to fix this bug.
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>
Diffstat (limited to 'BaseTools')
-rwxr-xr-x | BaseTools/Source/Python/AutoGen/AutoGenWorker.py | 1 | ||||
-rwxr-xr-x | BaseTools/Source/Python/AutoGen/DataPipe.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py index 0425f1ab0b..eea15239d4 100755 --- a/BaseTools/Source/Python/AutoGen/AutoGenWorker.py +++ b/BaseTools/Source/Python/AutoGen/AutoGenWorker.py @@ -198,6 +198,7 @@ class AutoGenWorkerInProcess(mp.Process): self.Wa._SrcTimeStamp = self.data_pipe.Get("Workspace_timestamp")
GlobalData.gGlobalDefines = self.data_pipe.Get("G_defines")
GlobalData.gCommandLineDefines = self.data_pipe.Get("CL_defines")
+ GlobalData.gCommandMaxLength = self.data_pipe.Get('gCommandMaxLength')
os.environ._data = self.data_pipe.Get("Env_Var")
GlobalData.gWorkspace = workspacedir
GlobalData.gDisableIncludePathCheck = False
diff --git a/BaseTools/Source/Python/AutoGen/DataPipe.py b/BaseTools/Source/Python/AutoGen/DataPipe.py index 86ac2b928d..41af343f62 100755 --- a/BaseTools/Source/Python/AutoGen/DataPipe.py +++ b/BaseTools/Source/Python/AutoGen/DataPipe.py @@ -148,6 +148,8 @@ class MemoryDataPipe(DataPipe): self.DataContainer = {"CL_defines": GlobalData.gCommandLineDefines}
+ self.DataContainer = {"gCommandMaxLength": GlobalData.gCommandMaxLength}
+
self.DataContainer = {"Env_Var": {k:v for k, v in os.environ.items()}}
self.DataContainer = {"PackageList": [(dec.MetaFile,dec.Arch) for dec in PlatformInfo.PackageList]}
|