]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Resolve a issue of Incremental build
authorBob Feng <bob.c.feng@intel.com>
Mon, 16 Dec 2019 10:18:46 +0000 (18:18 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 18 Dec 2019 07:24:45 +0000 (07:24 +0000)
commit01b6090b75922bc72604c334bd3dc331490af3bb
treeeb81a6c26ab77de1eded8e900f5041c7fde558cd
parentc5d6a57da02774019127e5ac271de274aee0d9e2
BaseTools: Resolve a issue of Incremental build

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2311

In patch set 13c5e34a - 0c3e8e99, we implemented incremental build with
using compiler/pre-processor generate dependent header file function.

A issue is found for MSVC compiler, that the cl.exe /showIncludes
build option generate header file list to either stdout or stderr.
For .c file, the header file list is print out to stdout while for
.vfr, .aslc and .nasm file, the file list is print out to stderr.

The build tool use two threads to process the message from stdout and
stderr, but to generate correct *.deps file, build tool need to
combine the header file list from stderr and other messages from stdout
together with correct time sequence order.

So this patch is trying to combine the stdout and stderr together for
the process which is for calling make program.

The impact of this patch is that the output message of build with -q
will be changed. The compiler error message will not print out.
The build behavior of other log level setting will not be impacted.

Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Steven Shi <steven.shi@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/build/build.py