summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2020-09-25 17:47:43 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2020-09-25 17:47:43 -0400
commit9662b20acc4d5dddfe455e27748bd4d34efec50e (patch)
tree65ba88941d5c322977c82546f650c69f92e5bbd2 /debian/patches
parent7bf48a3761016a3166c07bc8450d768405236a75 (diff)
Enable upstream’s hardened build mode
Abseil now includes an option to insert extra runtime checks to detect invariant violations. While not free, these checks are relatively lightweight and detect serious problems including undefined behavior. Enable them.
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/configure.diff10
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/patches/configure.diff b/debian/patches/configure.diff
index dc1ed9e7..2bdfc027 100644
--- a/debian/patches/configure.diff
+++ b/debian/patches/configure.diff
@@ -11,6 +11,8 @@ Configure Abseil for Debian.
(rather than aliases for the std:: versions), and compile everything in an
inline namespace.
+ - 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.
@@ -77,6 +79,14 @@ Configure Abseil for Debian.
// ABSL_OPTION_HARDENED
//
+@@ -233,6 +233,6 @@
+ // checks enabled by this option may abort the program in a different way and
+ // log additional information when `NDEBUG` is not defined.
+
+-#define ABSL_OPTION_HARDENED 0
++#define ABSL_OPTION_HARDENED 1
+
+ #endif // ABSL_BASE_OPTIONS_H_
--- a/absl/container/internal/have_sse.h
+++ b/absl/container/internal/have_sse.h
@@ -17,22 +17,14 @@