Skip to content

Commit 5dcf27b

Browse files
committed
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 (cherry picked from commit 15733fe)
1 parent d83ac1e commit 5dcf27b

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
@@ -414,6 +414,8 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
414414
// xcrun didn't find a matching SDK. Not an error, we'll try
415415
// different spellings.
416416
LLDB_LOG(log, "xcrun returned exit code {0}", status);
417+
if (!output_str.empty())
418+
LLDB_LOG(log, "xcrun output was:\n{0}", output_str);
417419
return "";
418420
}
419421
if (output_str.empty()) {

0 commit comments

Comments
 (0)