Compile out GroupVarint on non-Intel
[folly.git] / folly / test / GroupVarintTest.cpp
index 1e59016dd3d735c5096e6d0c2924a3b34682349e..32b4ae8f3502b73f07354f7280be20f6e967693d 100644 (file)
@@ -17,6 +17,9 @@
 #include <stdarg.h>
 #include "folly/GroupVarint.h"
 
+// On platforms where it's not supported, GroupVarint will be compiled out.
+#if HAVE_GROUP_VARINT
+
 #include <gtest/gtest.h>
 
 using namespace folly;
@@ -259,3 +262,4 @@ TEST(GroupVarint, GroupVarintDecoder) {
   }
 }
 
+#endif