From 4b1320a5f96b5d4f140815d337d49af4ead71b20 Mon Sep 17 00:00:00 2001 From: Michael Moss Date: Mon, 22 Jun 2026 06:15:38 -0700 Subject: [PATCH] Patch Abseil to verify compiler support for std::source_location. PiperOrigin-RevId: 936018935 Change-Id: I2cabbdf497dbb67452c27fc5ed02c56e6884f3d4 --- cmake/abseil-cpp-source_location.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmake/abseil-cpp-source_location.patch b/cmake/abseil-cpp-source_location.patch index 84655612..821a6539 100644 --- a/cmake/abseil-cpp-source_location.patch +++ b/cmake/abseil-cpp-source_location.patch @@ -9,3 +9,15 @@ diff --git a/absl/base/options.h b/absl/base/options.h +#define ABSL_OPTION_USE_STD_SOURCE_LOCATION 0 // ABSL_OPTION_USE_STD_ORDERING +diff --git a/absl/base/config.h b/absl/base/config.h +--- a/absl/base/config.h ++++ b/absl/base/config.h +@@ -543,5 +543,7 @@ + #ifdef __has_include + #if __has_include() +-#define ABSL_HAVE_STD_SOURCE_LOCATION 1 ++#if !defined(__clang__) || ABSL_HAVE_BUILTIN(__builtin_source_location) ++#define ABSL_HAVE_STD_SOURCE_LOCATION 1 ++#endif + #endif + #else