summaryrefslogtreecommitdiff
path: root/debian/patches/configure.diff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2022-07-12 22:23:45 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2022-08-22 22:14:38 -0400
commit73fdf3fb48dd390f4c517c11eac0fc68d3f07388 (patch)
tree32df601520d8810abe476d573c81647c16ee4970 /debian/patches/configure.diff
parent170e05ec7974a1b7b5133f638e71881925cc7e68 (diff)
Explicitly specify support status for SSE and NEON
Turn SSE off on i386 since Debian still supports the Pentium II. Similarly, turn NEON off on armel and armhf since it’s not universally supported. Split CPU feature support configuration into its own patch for clarity.
Diffstat (limited to 'debian/patches/configure.diff')
-rw-r--r--debian/patches/configure.diff27
1 files changed, 0 insertions, 27 deletions
diff --git a/debian/patches/configure.diff b/debian/patches/configure.diff
index 15a20382..ff0c64e9 100644
--- a/debian/patches/configure.diff
+++ b/debian/patches/configure.diff
@@ -13,13 +13,6 @@ Configure Abseil for Debian.
- Enable upstream's hardened build mode.
- - Disable Intel SSE2 on i386, since Debian supports some i386 processors
- without that extension. Keep it enabled on amd64, since all amd64 processors
- have it.
-
- - Disable Intel SSSE3 entirely, since no i386 processor supports it and Debian
- supports amd64 processors without it.
-
--- a/CMake/AbseilHelpers.cmake
+++ b/CMake/AbseilHelpers.cmake
@@ -281,7 +281,8 @@
@@ -87,23 +80,3 @@ Configure Abseil for Debian.
+#define ABSL_OPTION_HARDENED 1
#endif // ABSL_BASE_OPTIONS_H_
---- a/absl/base/config.h
-+++ b/absl/base/config.h
-@@ -877,7 +877,7 @@
- // which architectures support the various x86 instruction sets.
- #ifdef ABSL_INTERNAL_HAVE_SSE2
- #error ABSL_INTERNAL_HAVE_SSE2 cannot be directly set
--#elif defined(__SSE2__)
-+#elif defined(__x86_64__)
- #define ABSL_INTERNAL_HAVE_SSE2 1
- #elif defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)
- // MSVC only defines _M_IX86_FP for x86 32-bit code, and _M_IX86_FP >= 2
-@@ -898,8 +898,6 @@
- // by the CPU.
- #ifdef ABSL_INTERNAL_HAVE_SSSE3
- #error ABSL_INTERNAL_HAVE_SSSE3 cannot be directly set
--#elif defined(__SSSE3__)
--#define ABSL_INTERNAL_HAVE_SSSE3 1
- #endif
-
- // ABSL_INTERNAL_HAVE_ARM_NEON is used for compile-time detection of NEON (ARM