Patch Abseil to verify compiler support for std::source_location.
PiperOrigin-RevId: 936018935 Change-Id: I2cabbdf497dbb67452c27fc5ed02c56e6884f3d4
This commit is contained in:
committed by
Copybara-Service
parent
1490336955
commit
4b1320a5f9
@@ -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(<source_location>)
|
||||
-#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
|
||||
|
||||
Reference in New Issue
Block a user