From patchwork Mon Nov 30 19:32:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 29114 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 470C1C3300 for ; Mon, 30 Nov 2026 19:33:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DD5E96AA7D; Mon, 30 Nov 2026 20:33:16 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="F10OKHff"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 866F66AA76 for ; Mon, 30 Nov 2026 20:33:15 +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 E3A304B0; Mon, 30 Nov 2026 20:30:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1796067038; bh=Y5sMzf0j/nUTqzHSwBUvtSETLVXqLRwAfLWkinIx8qY=; h=From:To:Cc:Subject:Date:From; b=F10OKHff+0EEE9cFPdjtD+IkKn1QNnP9ZbkgvAAVUdOazpoJ38WjUNIdHHFyfLAl1 AeUJzAvVfadSWvUW5mnl57dvFNtp4wRGz0KJU3/rEBlLKlCOsb3WbRwARxtG16B5ct EXWZ8+okmBbKlSUaWCjUp5wjtZxtPQlANzNTkgS8= From: Kieran Bingham To: libcamera devel Cc: Kieran Bingham Subject: [PATCH] utils: abi-compat: Configure for C++20 to support std::span Date: Mon, 30 Nov 2026 19:32:57 +0000 Message-ID: <20261130193309.2716818-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, pass -std=c++20 to the compliance checker invocations of GCC to allow those. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- Without this, the abi-compliance compile process gets quite upset with a range of errors and warnings including: base/span.h:17:54: note: ‘std::span’ is only available from C++20 onwards 17 | using Span [[deprecated("use std::span instead")]] = std::span; | ^~~ Easily fixed by letting it use C++20. utils/abi-compat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/abi-compat.sh b/utils/abi-compat.sh index 31f61e320404..d6014634cd51 100755 --- a/utils/abi-compat.sh +++ b/utils/abi-compat.sh @@ -177,6 +177,7 @@ create_abi_dump() { "$install" abi-compliance-checker \ + -gcc-options "-std=c++20" \ -lib libcamera \ -v1 "$version" \ -dump "$install/libcamera-abi-dump.xml" \