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