diff options
author | Mingyue Liang <mingyuex.liang@intel.com> | 2020-11-10 13:39:50 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-11-10 05:49:38 +0000 |
commit | 8c610e6075f2a200400970698a810a57ad49220e (patch) | |
tree | b5cf967e63854617ecbf84973db02cf6fa4f7513 /edksetup.sh | |
parent | 8577d63cd86cf0bfb9a1ec6f172db1dab4d10e4e (diff) | |
download | edk2-8c610e6075f2a200400970698a810a57ad49220e.tar.gz edk2-8c610e6075f2a200400970698a810a57ad49220e.tar.bz2 edk2-8c610e6075f2a200400970698a810a57ad49220e.zip |
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>
Diffstat (limited to 'edksetup.sh')
0 files changed, 0 insertions, 0 deletions