From patchwork Tue May 7 18:17:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 20009 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 C7ACDBDE6B for ; Tue, 7 May 2024 18:18:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 81C0C6342D; Tue, 7 May 2024 20:18:09 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="PPAl1AXJ"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B94836343B for ; Tue, 7 May 2024 20:18:05 +0200 (CEST) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 48E8E9CE for ; Tue, 7 May 2024 20:18:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715105883; bh=Rk0oINdGtbNrppNtR2cAY3xO9oLWrWyjIas728ODEak=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PPAl1AXJD0tHttuFdytuTGHvt6mQGLOHVb/t8CLSylrVaBNgQUn58HUbMMqw4xruD foVRqil++5oHdMJd54uM2RRMSC0Hn3ph11ccYBhWqX2RMAyiyMUaKU09eZQnKOjkif NVY2a4TSraG3ob8V1fi5dWijsRs40+3L4jy7tbTc= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [CI] [PATCH v1 1/2] Add compilation test with C++20 Date: Tue, 7 May 2024 21:17:55 +0300 Message-ID: <20240507181756.32635-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240507181756.32635-1-laurent.pinchart@ideasonboard.com> References: <20240507181756.32635-1-laurent.pinchart@ideasonboard.com> 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 Sender: "libcamera-devel" libcamera currently uses C++17, but we want to prepare for a switch to C++20 in the somehow distant future. Avoid C++20 regressions by adding a compilation test with C++20. Do so with g++ 13, which is the most likely version of g++ to support this newer language version properly. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- gitlab-ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gitlab-ci.yml b/gitlab-ci.yml index 3dcb512525ed..225d929bd2ed 100644 --- a/gitlab-ci.yml +++ b/gitlab-ci.yml @@ -185,10 +185,17 @@ build-full:debian:13: needs: - job: container-debian:13 artifacts: false - variables: - ARCH: amd64 - CC: gcc-13 - CXX: g++-13 + parallel: + matrix: + - ARCH: amd64 + CC: gcc-13 + CXX: g++-13 + - ARCH: amd64 + CC: gcc-13 + CXX: g++-13 + MESON_OPTIONS: >- + ${MESON_ALL_OPTIONS} + -D cpp_std=c++20 # Build each commit in the branch individually to detect compilation breakages. build-history: