mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
protobufc pins a specific version of the C++ standard and does so using an ancient vendored macro from the autoconf archive. this causes a failure to build on gcc 16, as it defaults to C++20 and protobufc uses C++17. this particularly causes problems with abseil, which has headers which depend on the C++ standard to compile. accordingly, to avoid having to manually specify and update a version each time the default standard version updates, we unpin it completely and allow the compiler to choose what it uses by default. alternatively, we could override the abseil that ends up in protobufc by way of protobuf_33 to use the C++17 standard instead. this would work, but this seems more fragile and subject to compiler version churn. it is also our understanding that mixing and matching versions of standards in dependents can be messy, and using the default seems the least likely to cause problems.