Skip to content

Commit 15733fe

Browse files
Also log the error output from xcrun, if it fails. (llvm#70716)
In the rare case that an Xcode installation is damaged, this output could contain clues to further diagnose the issue. rdar://117698630
1 parent 6ae7b73 commit 15733fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
417417
// xcrun didn't find a matching SDK. Not an error, we'll try
418418
// different spellings.
419419
LLDB_LOG(log, "xcrun returned exit code {0}", status);
420+
if (!output_str.empty())
421+
LLDB_LOG(log, "xcrun output was:\n{0}", output_str);
420422
return "";
421423
}
422424
if (output_str.empty()) {

0 commit comments

Comments
 (0)