Skip to content

Commit

Permalink
[lldb] Make the PlatformMacOSX unit test Apple specific
Browse files Browse the repository at this point in the history
I thought that x86GetSupportedArchitectures would always return
x86_64-apple-macosx as a compatible architecture, regardless of the host
achitecture, but the Debian bot disagrees with that.
  • Loading branch information
JDevlieghere committed Mar 15, 2022
1 parent 242c574 commit b783e5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/unittests/Platform/PlatformMacOSXTest.cpp
Expand Up @@ -21,6 +21,7 @@ class PlatformMacOSXTest : public ::testing::Test {
SubsystemRAII<FileSystem, HostInfo, PlatformMacOSX> subsystems;
};

#ifdef __APPLE__
static bool containsArch(const std::vector<ArchSpec> &archs,
const ArchSpec &arch) {
return std::find_if(archs.begin(), archs.end(), [&](const ArchSpec &other) {
Expand Down Expand Up @@ -50,3 +51,4 @@ TEST_F(PlatformMacOSXTest, TestGetSupportedArchitectures) {
arm64_ios_arch));
#endif
}
#endif

0 comments on commit b783e5c

Please sign in to comment.