diff --git a/third-party/folly/folly/synchronization/test/DistributedMutexTest.cpp b/third-party/folly/folly/synchronization/test/DistributedMutexTest.cpp index e75d0f35c6..5b85a671b3 100644 --- a/third-party/folly/folly/synchronization/test/DistributedMutexTest.cpp +++ b/third-party/folly/folly/synchronization/test/DistributedMutexTest.cpp @@ -13,7 +13,7 @@ #include #endif -#ifndef ROCKSDB_LITE +#if !defined(ROCKSDB_LITE) && !defined(__ARM_ARCH) #include #include @@ -1128,9 +1128,15 @@ TEST(DistributedMutex, StressBigValueReturnSixtyFourThreads) { } } // namespace folly -#endif // ROCKSDB_LITE int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } + +#else +int main(int /*argc*/, char** /*argv*/) { + printf("DistributedMutex is not supported in ROCKSDB_LITE or on ARM\n"); + return 0; +} +#endif // !ROCKSDB_LITE && !__ARM_ARCH