-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[protobuf] Protobuf no longer compiles with vs2019 Update 16.10 w/ c+…
…+latest (#18251) * Create port_def.patch Patch to turn off constinit with Visual Studio 2019 Update 16.10 * Update portfile.cmake Apply port_def.patch * Update vcpkg.json Increment port-version * Add version
- Loading branch information
Showing
5 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc | ||
index f7b64a080..3493d9082 100644 | ||
--- a/src/google/protobuf/port_def.inc | ||
+++ b/src/google/protobuf/port_def.inc | ||
@@ -564,7 +564,8 @@ | ||
|
||
// Our use of constinit does not yet work with GCC: | ||
// https://github.com/protocolbuffers/protobuf/issues/8310 | ||
-#if defined(__cpp_constinit) && !defined(__GNUC__) | ||
+// Does not work yet with Visual Studio 2019 Update 16.10 | ||
+#if defined(__cpp_constinit) && !defined(__GNUC__) && !defined(_MSC_VER) | ||
#define PROTOBUF_CONSTINIT constinit | ||
#elif defined(__has_cpp_attribute) | ||
#if __has_cpp_attribute(clang::require_constant_initialization) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters