OSDN Git Service

Only run frameheader_cache_test.pass.cpp on x86_64.
authorSterling Augustine <saugustine@google.com>
Fri, 13 Mar 2020 01:12:52 +0000 (18:12 -0700)
committerSterling Augustine <saugustine@google.com>
Fri, 13 Mar 2020 01:14:22 +0000 (18:14 -0700)
Although there is nothing architecturally specific, the
ifdef chains are too complicated otherwise.

libunwind/test/frameheadercache_test.pass.cpp

index df0f926..9397e70 100644 (file)
@@ -3,6 +3,11 @@
 #include "../src/config.h"
 
 // Only run this test under supported configurations.
+// The frame header cache should work fine for other architectures,
+// but the #ifdefs end up being even more complicated than this.
+
+#ifdef __x86_64__
+
 // This #if chain is ugly, but see the comments in AddressSpace.hpp for
 // the reasoning.
 
@@ -82,3 +87,6 @@ int main() {
 #else
 int main() { return 0; }
 #endif
+#else
+int main() { return 0;}
+#endif