We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932d7db commit e35aac0Copy full SHA for e35aac0
lldb/include/lldb/Host/linux/HostInfoLinux.h
@@ -30,6 +30,12 @@ class HostInfoLinux : public HostInfoPosix {
30
static llvm::StringRef GetDistributionId();
31
static FileSpec GetProgramFileSpec();
32
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
+
39
protected:
40
static bool ComputeSupportExeDirectory(FileSpec &file_spec);
41
static bool ComputeSystemPluginsDirectory(FileSpec &file_spec);
0 commit comments