diff --git a/bazel/absl.patch b/bazel/absl.patch index c56db7461..26d95967a 100644 --- a/bazel/absl.patch +++ b/bazel/absl.patch @@ -1,12 +1,18 @@ -diff -uw -r a/absl/base/options.h b/absl/base/options.h ---- a/absl/base/options.h 2021-04-02 23:00:31.996584600 -0400 -+++ b/absl/base/options.h 2021-04-02 23:01:07.506208600 -0400 -@@ -154,7 +154,7 @@ +diff --git a/absl/base/options.h b/absl/base/options.h +index 4b70446b..6a839d94 100644 +--- a/absl/base/options.h ++++ b/absl/base/options.h +@@ -148,7 +148,13 @@ // 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 + ++#ifdef _WIN32 ++// On Windows, the std::string_view iterator is not const char*, which ++// is the expectation in a lot of Verible code. Use absl-impl. +#define ABSL_OPTION_USE_STD_STRING_VIEW 0 - ++#else + #define ABSL_OPTION_USE_STD_STRING_VIEW 2 ++#endif + // ABSL_OPTION_USE_STD_VARIANT //