From d9d4b607ab30186a424480e3e274cb439983561f Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Fri, 4 Aug 2023 12:49:12 +0200 Subject: grpc and protobuf: use c++17 Due to a possible clang issue, protobuf v23.4 fails on debian-12 built with c++20. As such, protobuf and its consumer grpc have been set to build with c++17 until this is resolved upstream. Co-authored: Paul Cristian Sarbu --- etc/defaults/CC/TARGETS.grpc | 2 +- etc/defaults/CC/TARGETS.protobuf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/defaults') diff --git a/etc/defaults/CC/TARGETS.grpc b/etc/defaults/CC/TARGETS.grpc index b562de40..fbafa136 100644 --- a/etc/defaults/CC/TARGETS.grpc +++ b/etc/defaults/CC/TARGETS.grpc @@ -97,7 +97,7 @@ , "body": { "type": "++" , "$1": - [ ["-std=c++20"] + [ ["-std=c++17"] , { "type": "case" , "expr": {"type": "var", "name": "COMPILER_FAMILY"} , "case": {"msvc": []} diff --git a/etc/defaults/CC/TARGETS.protobuf b/etc/defaults/CC/TARGETS.protobuf index 2bde69ea..f2ae56d6 100644 --- a/etc/defaults/CC/TARGETS.protobuf +++ b/etc/defaults/CC/TARGETS.protobuf @@ -13,7 +13,7 @@ , "body": { "type": "++" , "$1": - [ ["-std=c++20", "-DHAVE_PTHREAD=1", "-DHAVE_ZLIB=1"] + [ ["-std=c++17", "-DHAVE_PTHREAD=1", "-DHAVE_ZLIB=1"] , { "type": "case" , "expr": {"type": "var", "name": "COMPILER_FAMILY"} , "case": -- cgit v1.2.3