aboutsummaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-third__party_swiftshader_third__party_llvm-10.0_configs_linux_include_llvm_Config_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/iridium/files/patch-third__party_swiftshader_third__party_llvm-10.0_configs_linux_include_llvm_Config_config.h')
-rw-r--r--www/iridium/files/patch-third__party_swiftshader_third__party_llvm-10.0_configs_linux_include_llvm_Config_config.h83
1 files changed, 22 insertions, 61 deletions
diff --git a/www/iridium/files/patch-third__party_swiftshader_third__party_llvm-10.0_configs_linux_include_llvm_Config_config.h b/www/iridium/files/patch-third__party_swiftshader_third__party_llvm-10.0_configs_linux_include_llvm_Config_config.h
index 3929b6d0ffec..a25fe5194a2f 100644
--- a/www/iridium/files/patch-third__party_swiftshader_third__party_llvm-10.0_configs_linux_include_llvm_Config_config.h
+++ b/www/iridium/files/patch-third__party_swiftshader_third__party_llvm-10.0_configs_linux_include_llvm_Config_config.h
@@ -1,39 +1,6 @@
---- third_party/swiftshader/third_party/llvm-10.0/configs/linux/include/llvm/Config/config.h.orig 2022-03-28 18:11:04 UTC
+--- third_party/swiftshader/third_party/llvm-10.0/configs/linux/include/llvm/Config/config.h.orig 2022-10-05 07:34:01 UTC
+++ third_party/swiftshader/third_party/llvm-10.0/configs/linux/include/llvm/Config/config.h
-@@ -1,20 +1,19 @@
-+/* include/llvm/Config/config.h.cmake corresponding to config.h.in. */
-+
- #ifndef CONFIG_H
- #define CONFIG_H
-
- /* Exported configuration */
- #include "llvm/Config/llvm-config.h"
-
--/* For detecting __GLIBC__ usage */
--#include <features.h>
--
- /* Bug report URL. */
- #define BUG_REPORT_URL "https://bugs.llvm.org/"
-
- /* Define to 1 to enable backtraces, and to 0 otherwise. */
--/* #undef ENABLE_BACKTRACES */
-+#define ENABLE_BACKTRACES 1
-
- /* Define to 1 to enable crash overrides, and to 0 otherwise. */
--/* #undef ENABLE_CRASH_OVERRIDES */
-+#define ENABLE_CRASH_OVERRIDES 1
-
- /* Define to 1 to enable crash memory dumps, and to 0 otherwise. */
- #define LLVM_ENABLE_CRASH_DUMPS 0
-@@ -25,14 +24,14 @@
- /* #undef BACKTRACE_HEADER */
-
- /* Define to 1 if you have the <CrashReporterClient.h> header file. */
--/* #undef HAVE_CRASHREPORTERCLIENT_H */
-+#undef HAVE_CRASHREPORTERCLIENT_H
-
- /* can use __crashreporter_info__ */
- #define HAVE_CRASHREPORTER_INFO 0
+@@ -29,7 +29,7 @@
/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
don't. */
@@ -42,7 +9,7 @@
/* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you
don't. */
-@@ -56,7 +55,7 @@
+@@ -53,7 +53,7 @@
#define HAVE_DLOPEN 1
/* Define if dladdr() is available on this platform. */
@@ -51,7 +18,7 @@
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
-@@ -95,7 +94,7 @@
+@@ -92,7 +92,7 @@
#define HAVE_ISATTY 1
/* Define to 1 if you have the `edit' library (-ledit). */
@@ -60,7 +27,7 @@
/* Define to 1 if you have the `pfm' library (-lpfm). */
/* #undef HAVE_LIBPFM */
-@@ -113,13 +112,13 @@
+@@ -110,13 +110,13 @@
/* #undef HAVE_PTHREAD_SETNAME_NP */
/* Define to 1 if you have the `z' library (-lz). */
@@ -77,25 +44,16 @@
/* Define to 1 if you have the <mach/mach.h> header file. */
/* #undef HAVE_MACH_MACH_H */
-@@ -127,15 +126,9 @@
- /* Define to 1 if you have the `mallctl' function. */
+@@ -125,7 +125,7 @@
/* #undef HAVE_MALLCTL */
--/* Define to 1 if you have the `mallinfo' function. */
+ /* Define to 1 if you have the `mallinfo' function. */
-#define HAVE_MALLINFO 1
-+/* Define if mallinfo() is available on this platform. */
+/* #undef HAVE_MALLINFO */
--/* Some projects using SwiftShader bypass cmake (eg Chromium via gn) */
--/* so we need to check glibc version for the new API to be safe */
--#if defined(__GLIBC__) && __GLIBC_MINOR__ >= 33
--#define HAVE_MALLINFO2 1
--#endif
--
/* Define to 1 if you have the <malloc/malloc.h> header file. */
/* #undef HAVE_MALLOC_MALLOC_H */
-
-@@ -143,10 +136,10 @@
+@@ -134,10 +134,10 @@
/* #undef HAVE_MALLOC_ZONE_STATISTICS */
/* Define to 1 if you have the `posix_fallocate' function. */
@@ -108,7 +66,7 @@
/* Define to 1 if you have the `pread' function. */
#define HAVE_PREAD 1
-@@ -170,10 +163,10 @@
+@@ -161,10 +161,10 @@
#define HAVE_SETENV 1
/* Define to 1 if you have the `sched_getaffinity' function. */
@@ -121,7 +79,7 @@
/* Define to 1 if you have the `setrlimit' function. */
#define HAVE_SETRLIMIT 1
-@@ -191,7 +184,7 @@
+@@ -182,7 +182,7 @@
#define HAVE_STRERROR_R 1
/* Define to 1 if you have the `sysconf' function. */
@@ -130,7 +88,7 @@
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#define HAVE_SYS_IOCTL_H 1
-@@ -218,7 +211,7 @@
+@@ -209,7 +209,7 @@
#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
/* Define to 1 if you have the <sys/types.h> header file. */
@@ -139,7 +97,7 @@
/* Define if the setupterm() function is supported this platform. */
/* #undef HAVE_TERMINFO */
-@@ -227,16 +220,16 @@
+@@ -218,16 +218,16 @@
/* #undef HAVE_LIBXAR */
/* Define to 1 if you have the <termios.h> header file. */
@@ -159,10 +117,12 @@
/* Have host's _alloca */
/* #undef HAVE__ALLOCA */
-@@ -303,26 +296,10 @@
+@@ -292,30 +292,8 @@
+ /* Linker version detected at compile time. */
+ /* #undef HOST_LINK_VERSION */
- /* Target triple LLVM will generate code for by default */
- /* Doesn't use `cmakedefine` because it is allowed to be empty. */
+-/* Target triple LLVM will generate code for by default */
+-/* Doesn't use `cmakedefine` because it is allowed to be empty. */
-#if defined(__x86_64__)
-#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64-unknown-linux-gnu"
-#elif defined(__i386__)
@@ -177,18 +137,19 @@
-#define LLVM_DEFAULT_TARGET_TRIPLE "mips64el-linux-gnuabi64"
-#elif defined(__powerpc64__)
-#define LLVM_DEFAULT_TARGET_TRIPLE "powerpc64le-unknown-linux-gnu"
+-#elif defined(__riscv) && __riscv_xlen == 64
+-#define LLVM_DEFAULT_TARGET_TRIPLE "riscv64-unknown-linux-gnu"
-#else
-#error "unknown architecture"
-#endif
-+/* #define LLVM_DEFAULT_TARGET_TRIPLE "amd64-unknown-openbsd6.8" */
-
+-
/* Define if zlib compression is available */
-#define LLVM_ENABLE_ZLIB 0
+/* #define LLVM_ENABLE_ZLIB 1 */
/* Define if overriding target triple is enabled */
/* #undef LLVM_TARGET_TRIPLE_ENV */
-@@ -346,10 +323,10 @@
+@@ -339,10 +317,10 @@
#define PACKAGE_NAME "LLVM"
/* Define to the full name and version of this package. */
@@ -201,7 +162,7 @@
/* Define to the vendor of this package. */
/* #undef PACKAGE_VENDOR */
-@@ -368,9 +345,6 @@
+@@ -361,9 +339,6 @@
/* Whether GlobalISel rule coverage is being collected */
#define LLVM_GISEL_COV_ENABLED 0