You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking change: prohibit using Bazel+MSVC to build protobuf
An opt-out flag `--define=protobuf_allow_msvc=true` will be available until our 2026 breaking release 34.0. See #20085 for more details.
#test-continuous
PiperOrigin-RevId: 718525948
Copy file name to clipboardExpand all lines: src/google/protobuf/stubs/port.h
+7
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,13 @@
31
31
#include<byteswap.h>// IWYU pragma: export
32
32
#endif
33
33
34
+
#if defined(_MSC_VER) && !defined(__clang__) && \
35
+
defined(GOOGLE_PROTOBUF_USING_BAZEL) && \
36
+
!defined(GOOGLE_PROTOBUF_MSVC_BAZEL_OVERRIDE)
37
+
#error \
38
+
"Protobuf will be dropping support for MSVC + Bazel in 34.0. To continue using it until then, use the flag --define=protobuf_allow_msvc=true. See github.com/protocolbuffers/protobuf/issues/20085 for more information."
39
+
#endif
40
+
34
41
// Legacy: some users reference these (internal-only) macros even though we
0 commit comments