Descriptioncompiler_version: suppress stderr unless command fails
gyp considers a shell variable substitution to have failed if it
generates any output to stderr, even if the exit status was zero.
This causes problems when gomacc automatically starts its proxy,
which helpfully reports "GOMA: Starting compiler proxy" to stderr.
Fixed by dropping stderr unless the underlying process returns
a non-zero exit status.
BUG=chromium-os:28670
TEST=Ran hooks normally and inside CrOS chroot, with and without
$CXX pointing to goma. A $CXX which writes to stderr and then
exits with failure still prints its output before the exception.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135663
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|