From patchwork Thu Dec 3 15:52:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 29155 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 59EBAC3300 for ; Thu, 3 Dec 2026 15:53:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 486F16AB4B; Thu, 3 Dec 2026 16:53:05 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="XJGlJihc"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7E52C6AB3B for ; Thu, 3 Dec 2026 16:53:03 +0100 (CET) Received: from Monstersaurus.lan (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 918F873; Thu, 3 Dec 2026 16:50:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1796313023; bh=TxmGPaSfL96SHKXF8BPcR7ffiYFlofPsCXvgN4mC2Gk=; h=From:To:Cc:Subject:Date:From; b=XJGlJihcGl015kxpVHusakgdBRR1mcnVNMKfotCmiQyMC/tCqDGk26Xi9pZMxrYNL TIN1A/2y8EaDGXETgLSYhin6Xu4N5oWX6CXllJc7WgHDYsrDBo1zMHQv+JhlkWYEZp 5xCc4EE4+o+9yfD7vx8PJ6kpLdO5QzXEGjE78fl8= From: Kieran Bingham To: libcamera devel Cc: Kieran Bingham , Laurent Pinchart , =?utf-8?b?QmFybmFiw6FzIFDFkWN6?= =?utf-8?q?e?= Subject: [PATCH v2] utils: abi-compat: Configure for C++20 to support std::span Date: Thu, 3 Dec 2026 15:52:58 +0000 Message-ID: <20261203155258.3348209-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Now that we use std::span, we need to pass -std=c++20 to the compliance checker invocations of GCC to allow those. As we might change the C++ standard in the future, identify the standard from the current build and pass that to the abi-compliance tool. Reviewed-by: Laurent Pinchart Reviewed-by: Barnabás Pőcze Signed-off-by: Kieran Bingham --- v2: - Use cpp_std defined by meson. utils/abi-compat.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/abi-compat.sh b/utils/abi-compat.sh index 31f61e320404..c52d59d681ac 100755 --- a/utils/abi-compat.sh +++ b/utils/abi-compat.sh @@ -176,7 +176,11 @@ create_abi_dump() { "$version" \ "$install" + CPP_STD=$(jq -r '.[] | select(.name == "cpp_std") | .value' \ + "$build/meson-info/intro-buildoptions.json") + abi-compliance-checker \ + -gcc-options "-std=$CPP_STD" \ -lib libcamera \ -v1 "$version" \ -dump "$install/libcamera-abi-dump.xml" \