Skip to content

Commit 286ccd3

Browse files
Merge pull request swiftlang#7724 from adrian-prantl/cherry-pick-swift-release-5.10-Also-log-the-error-output-from-xcrun-if-it-fails.-70716
[Cherry-pick into swift/release/5.10] Also log the error output from xcrun, if it fails. (llvm#70716)
2 parents d83ac1e + 5dcf27b commit 286ccd3

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)