mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Optionally separate Tasks` stderr from stdout.
Fixes a serious problem where spurious output from xcrun breaks swift's discovery of libarclite. <rdar://problem/28573949>
This commit is contained in:
@@ -481,8 +481,9 @@ int Compilation::performJobsImpl() {
|
||||
// continue (if execution should stop, this callback should return true), and
|
||||
// it should also schedule any additional commands which we now know need
|
||||
// to run.
|
||||
auto taskFinished = [&] (ProcessId Pid, int ReturnCode, StringRef Output,
|
||||
void *Context) -> TaskFinishedResponse {
|
||||
auto taskFinished = [&](ProcessId Pid, int ReturnCode, StringRef Output,
|
||||
StringRef Errors,
|
||||
void *Context) -> TaskFinishedResponse {
|
||||
const Job *FinishedCmd = (const Job *)Context;
|
||||
|
||||
if (ShowDriverTimeCompilation) {
|
||||
@@ -612,8 +613,9 @@ int Compilation::performJobsImpl() {
|
||||
return TaskFinishedResponse::ContinueExecution;
|
||||
};
|
||||
|
||||
auto taskSignalled = [&] (ProcessId Pid, StringRef ErrorMsg, StringRef Output,
|
||||
void *Context) -> TaskFinishedResponse {
|
||||
auto taskSignalled = [&](ProcessId Pid, StringRef ErrorMsg, StringRef Output,
|
||||
StringRef Errors,
|
||||
void *Context) -> TaskFinishedResponse {
|
||||
const Job *SignalledCmd = (const Job *)Context;
|
||||
|
||||
if (ShowDriverTimeCompilation) {
|
||||
|
||||
Reference in New Issue
Block a user