summaryrefslogtreecommitdiff
path: root/lldb/unittests
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2023-05-01 10:22:53 -0700
committerDouglas Yung <douglas.yung@sony.com>2023-05-01 10:22:53 -0700
commitc46d9af26cefb0b24646d3235b75ae7a1b8548d4 (patch)
treeb3f4ae09f172e9bc36efff66c32b2f93e72b7e27 /lldb/unittests
parent4343534a670f74e87841c0ca03d3189b72c04b1d (diff)
downloadllvm-c46d9af26cefb0b24646d3235b75ae7a1b8548d4.tar.gz
Revert "Host: generalise `GetXcodeSDKPath`"
This reverts commit ade3c6a6a88ed3a9b06c076406f196da9d3cc1b9. This breaks the build with GCC and affects at least 2 build bots: https://lab.llvm.org/buildbot/#/builders/217/builds/20568 https://lab.llvm.org/buildbot/#/builders/243/builds/5576
Diffstat (limited to 'lldb/unittests')
-rw-r--r--lldb/unittests/Host/HostInfoTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/unittests/Host/HostInfoTest.cpp b/lldb/unittests/Host/HostInfoTest.cpp
index 322675c7f485..b6c8edd74154 100644
--- a/lldb/unittests/Host/HostInfoTest.cpp
+++ b/lldb/unittests/Host/HostInfoTest.cpp
@@ -57,8 +57,7 @@ TEST_F(HostInfoTest, GetHostname) {
#if defined(__APPLE__)
TEST_F(HostInfoTest, GetXcodeSDK) {
auto get_sdk = [](std::string sdk, bool error = false) -> llvm::StringRef {
- auto sdk_path_or_err =
- HostInfo::GetSDKRoot(HostInfo::SDKOptions{XcodeSDK(std::move(sdk))});
+ auto sdk_path_or_err = HostInfo::GetXcodeSDKPath(XcodeSDK(std::move(sdk)));
if (!error) {
EXPECT_TRUE((bool)sdk_path_or_err);
return *sdk_path_or_err;