Skip to content

Commit 713e745

Browse files
Merge pull request #6767 from adrian-prantl/108765542
Silence a spurious warning about the SDK location when debugging Swif…
2 parents a4a75f9 + e35aac0 commit 713e745

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lldb/include/lldb/Host/linux/HostInfoLinux.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ class HostInfoLinux : public HostInfoPosix {
3030
static llvm::StringRef GetDistributionId();
3131
static FileSpec GetProgramFileSpec();
3232

33+
static llvm::Expected<llvm::StringRef> GetSDKRoot(SDKOptions options) {
34+
if (options.XcodeSDK && options.XcodeSDK->GetType() == XcodeSDK::Type::Linux)
35+
return "/";
36+
return llvm::make_error<HostInfoError>("cannot determine SDK root");
37+
}
38+
3339
protected:
3440
static bool ComputeSupportExeDirectory(FileSpec &file_spec);
3541
static bool ComputeSystemPluginsDirectory(FileSpec &file_spec);

0 commit comments

Comments
 (0)