]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Limit command line length.
authorMingyue Liang <mingyuex.liang@intel.com>
Tue, 10 Nov 2020 05:39:50 +0000 (13:39 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 10 Nov 2020 05:49:38 +0000 (05:49 +0000)
commit8c610e6075f2a200400970698a810a57ad49220e
treeb5cf967e63854617ecbf84973db02cf6fa4f7513
parent8577d63cd86cf0bfb9a1ec6f172db1dab4d10e4e
BaseTools: Limit command line length.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2528

Currently, CL command contains multiple C files will be compiled,
and that caused command line too long, which may trigger build error.

In order to solve this issue, the following rules is used in this scene:

If the number of C files is greater than one, a txt file will be used
to record these C files, and replaces the corresponding content in
command line with the file name.

Else (only one C file listed in the command line), the length of the
whole CL command line will determine whether use a file to record. If
the length exceeds the limited max length, use the recording file; else
C file name directly listed in the command line

Signed-off-by: Mingyue Liang <mingyuex.liang@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/GenMake.py
BaseTools/Source/Python/AutoGen/IncludesAutoGen.py