summaryrefslogtreecommitdiff
path: root/etc/patches/options.h.diff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-08-21 14:31:20 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-08-21 16:44:07 +0200
commitd3071ef178586d58b234df26d4a702aaaf97d7e0 (patch)
tree4bd829a8c8e32473394eaedf2653aca73832a8a1 /etc/patches/options.h.diff
parentb127c86625b5b6751d47e21f431bc7f748ac8ded (diff)
downloadjustbuild-d3071ef178586d58b234df26d4a702aaaf97d7e0.tar.gz
bundled absl: configure in a portable way
... by disabling auto-configuration. The problem that the result of this auto-configuration depends on the language standard used and may (and in case of libproto does) leak into public interfaces of consuming libraries; this would require every user of a library with a public dependency of absl to use the same language standard that library was built with. Such a requirement makes the rules hard to use in a portable way.
Diffstat (limited to 'etc/patches/options.h.diff')
-rw-r--r--etc/patches/options.h.diff38
1 files changed, 38 insertions, 0 deletions
diff --git a/etc/patches/options.h.diff b/etc/patches/options.h.diff
new file mode 100644
index 00000000..d0f27f99
--- /dev/null
+++ b/etc/patches/options.h.diff
@@ -0,0 +1,38 @@
+--- options.h.orig 2023-08-21 14:27:30.600786502 +0200
++++ options.h 2023-08-21 14:28:34.951926481 +0200
+@@ -94,7 +94,7 @@
+ // User code should not inspect this macro. To check in the preprocessor if
+ // absl::any is a typedef of std::any, use the feature macro ABSL_USES_STD_ANY.
+
+-#define ABSL_OPTION_USE_STD_ANY 2
++#define ABSL_OPTION_USE_STD_ANY 0
+
+
+ // ABSL_OPTION_USE_STD_OPTIONAL
+@@ -121,7 +121,7 @@
+ // absl::optional is a typedef of std::optional, use the feature macro
+ // ABSL_USES_STD_OPTIONAL.
+
+-#define ABSL_OPTION_USE_STD_OPTIONAL 2
++#define ABSL_OPTION_USE_STD_OPTIONAL 0
+
+
+ // ABSL_OPTION_USE_STD_STRING_VIEW
+@@ -148,7 +148,7 @@
+ // absl::string_view is a typedef of std::string_view, use the feature macro
+ // ABSL_USES_STD_STRING_VIEW.
+
+-#define ABSL_OPTION_USE_STD_STRING_VIEW 2
++#define ABSL_OPTION_USE_STD_STRING_VIEW 0
+
+ // ABSL_OPTION_USE_STD_VARIANT
+ //
+@@ -174,7 +174,7 @@
+ // absl::variant is a typedef of std::variant, use the feature macro
+ // ABSL_USES_STD_VARIANT.
+
+-#define ABSL_OPTION_USE_STD_VARIANT 2
++#define ABSL_OPTION_USE_STD_VARIANT 0
+
+
+ // ABSL_OPTION_USE_INLINE_NAMESPACE