diff --git a/lldb/unittests/Platform/PlatformMacOSXTest.cpp b/lldb/unittests/Platform/PlatformMacOSXTest.cpp index e35489a47d87e..123fdbc39d672 100644 --- a/lldb/unittests/Platform/PlatformMacOSXTest.cpp +++ b/lldb/unittests/Platform/PlatformMacOSXTest.cpp @@ -21,6 +21,7 @@ class PlatformMacOSXTest : public ::testing::Test { SubsystemRAII subsystems; }; +#ifdef __APPLE__ static bool containsArch(const std::vector &archs, const ArchSpec &arch) { return std::find_if(archs.begin(), archs.end(), [&](const ArchSpec &other) { @@ -50,3 +51,4 @@ TEST_F(PlatformMacOSXTest, TestGetSupportedArchitectures) { arm64_ios_arch)); #endif } +#endif