summaryrefslogtreecommitdiff
path: root/src/third_party/unwind/platform/linux_x86_64/build/include/libunwind.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/unwind/platform/linux_x86_64/build/include/libunwind.h')
-rw-r--r--src/third_party/unwind/platform/linux_x86_64/build/include/libunwind.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/third_party/unwind/platform/linux_x86_64/build/include/libunwind.h b/src/third_party/unwind/platform/linux_x86_64/build/include/libunwind.h
new file mode 100644
index 00000000000..91bb8ef9cad
--- /dev/null
+++ b/src/third_party/unwind/platform/linux_x86_64/build/include/libunwind.h
@@ -0,0 +1,38 @@
+/* Provide a real file - not a symlink - as it would cause multiarch conflicts
+ when multiple different arch releases are installed simultaneously. */
+
+#ifndef UNW_REMOTE_ONLY
+
+#if defined __aarch64__
+#include "libunwind-aarch64.h"
+#elif defined __arm__
+# include "libunwind-arm.h"
+#elif defined __hppa__
+# include "libunwind-hppa.h"
+#elif defined __ia64__
+# include "libunwind-ia64.h"
+#elif defined __mips__
+# include "libunwind-mips.h"
+#elif defined __powerpc__ && !defined __powerpc64__
+# include "libunwind-ppc32.h"
+#elif defined __powerpc64__
+# include "libunwind-ppc64.h"
+#elif defined __sh__
+# include "libunwind-sh.h"
+#elif defined __i386__
+# include "libunwind-x86.h"
+#elif defined __x86_64__
+# include "libunwind-x86_64.h"
+#elif defined __tilegx__
+# include "libunwind-tilegx.h"
+#elif defined __s390x__
+# include "libunwind-s390x.h"
+#else
+# error "Unsupported arch"
+#endif
+
+#else /* UNW_REMOTE_ONLY */
+
+# include "libunwind-x86_64.h"
+
+#endif /* UNW_REMOTE_ONLY */