mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #16444 from BenchR267/feature/add-metrics-to-driver-output
[Driver] Added process information to emitted task messages
This commit is contained in:
@@ -1431,10 +1431,9 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
|
||||
sys::TaskQueue queue;
|
||||
queue.addTask(xcrunPath->c_str(), args);
|
||||
queue.execute(nullptr,
|
||||
[&OI](sys::ProcessId PID,
|
||||
int returnCode,
|
||||
StringRef output,
|
||||
StringRef errors,
|
||||
[&OI](sys::ProcessId PID, int returnCode,
|
||||
StringRef output, StringRef errors,
|
||||
sys::TaskProcessInformation ProcInfo,
|
||||
void *unused) -> sys::TaskFinishedResponse {
|
||||
if (returnCode == 0) {
|
||||
output = output.rtrim();
|
||||
|
||||
Reference in New Issue
Block a user