From patchwork Mon Feb 16 14:28:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 26160 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 6E0C7C31E9 for ; Mon, 16 Feb 2026 14:28:49 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8194C621EE; Mon, 16 Feb 2026 15:28:48 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="UfwuJ23n"; 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 F226F62084 for ; Mon, 16 Feb 2026 15:28:46 +0100 (CET) Received: from pb-laptop.local (185.221.141.206.nat.pool.zt.hu [185.221.141.206]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 155B04B3 for ; Mon, 16 Feb 2026 15:27:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1771252076; bh=SpHborgIUfZ0mvxlZwaze9fQxXwBiC+EzbtukCaITlA=; h=From:To:Subject:Date:From; b=UfwuJ23nOzh4HF0aFO4qhtlw5HwWE2tQLUy0fNfm4kwre4HDq22nbgPCqhjgme12F zxo9zoo7R/8gnnar33EXLsx7lFjvI5LJ8oKLYOp+2ccQbTMbA2EPgHgpn6xY59popo iOU8mpw3hLmgVKI0teQi/nh/V5zPXoKQbgryQ5Hg= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [libcamera-ci] [RFC PATCH v1] Add clang builds with libstdc++ Date: Mon, 16 Feb 2026 15:28:43 +0100 Message-ID: <20260216142843.482262-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.53.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 Sender: "libcamera-devel" Currently clang is only used to test libc++ builds. This, however, prevents the build testing of e.g. qcam since the packaged qt libraries use libstdc++, so it needs to be disabled when using libc++. So duplicate every current clang job for libstdc++ testing. Link: https://gitlab.freedesktop.org/camera/libcamera/-/issues/315 Signed-off-by: Barnabás Pőcze --- Maybe it's not worth duplicating each clang job, but adding at least one (clang, libstdc++) build is probably worth it. --- .gitlab-ci/meson/libstdc++.native | 3 +++ gitlab-ci.yml | 36 ++++++++++++++----------------- 2 files changed, 19 insertions(+), 20 deletions(-) create mode 100644 .gitlab-ci/meson/libstdc++.native -- 2.53.0 diff --git a/.gitlab-ci/meson/libstdc++.native b/.gitlab-ci/meson/libstdc++.native new file mode 100644 index 0000000..3116043 --- /dev/null +++ b/.gitlab-ci/meson/libstdc++.native @@ -0,0 +1,3 @@ +[built-in options] +cpp_args = ['-stdlib=libstdc++'] +cpp_link_args = ['-stdlib=libstdc++'] diff --git a/gitlab-ci.yml b/gitlab-ci.yml index 6256335..e51266c 100644 --- a/gitlab-ci.yml +++ b/gitlab-ci.yml @@ -29,7 +29,12 @@ variables: # clang fails to link with ASan if --no-undefined is enabled. MESON_CLANG_OPTIONS: >- -D b_lundef=false + MESON_CLANG_LIBCPP_OPTIONS: >- + ${MESON_CLANG_OPTIONS} --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/libc++.native + MESON_CLANG_LIBSTDCPP_OPTIONS: >- + ${MESON_CLANG_OPTIONS} + --native-file $CI_PROJECT_DIR/.gitlab-ci/meson/libstdc++.native PACKAGES: >- ca-certificates git @@ -194,21 +199,14 @@ build-full:debian:12: ${MESON_ALL_OPTIONS} -D b_sanitize=none - ARCH: amd64 - BUILD_TYPE: debug - CC: clang - CXX: clang++ - MESON_OPTIONS: >- - ${MESON_ALL_OPTIONS} - ${MESON_CLANG_OPTIONS} - -D qcam=disabled - - ARCH: amd64 - BUILD_TYPE: release + BUILD_TYPE: + - debug + - release CC: clang CXX: clang++ - MESON_OPTIONS: >- - ${MESON_ALL_OPTIONS} - ${MESON_CLANG_OPTIONS} - -D qcam=disabled + MESON_OPTIONS: + - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBCPP_OPTIONS} -D qcam=disabled + - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBSTDCPP_OPTIONS} build-full:debian:12:as-subproject: extends: @@ -256,13 +254,11 @@ build-full:debian:13: - ARCH: amd64 CC: clang CXX: clang++ - MESON_OPTIONS: >- - ${MESON_ALL_OPTIONS} - ${MESON_CLANG_OPTIONS} - -D qcam=disabled - -D cpp_debugstl=false - # `cpp_debugstl=false` needed approximately between meson 1.4.0 and 1.9.3 - # with clang 18 or later due to https://github.com/mesonbuild/meson/issues/13812 + MESON_OPTIONS: + # `cpp_debugstl=false` needed approximately between meson 1.4.0 and 1.9.3 + # with clang 18 or later due to https://github.com/mesonbuild/meson/issues/13812 + - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBCPP_OPTIONS} -D qcam=disabled -D cpp_debugstl=false + - ${MESON_ALL_OPTIONS} ${MESON_CLANG_LIBSTDCPP_OPTIONS} - ARCH: armhf - ARCH: arm64