From patchwork Mon Dec 9 17:11:28 2024 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: 22261 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 213ABBE080 for ; Mon, 9 Dec 2024 17:11:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8E6F767E69; Mon, 9 Dec 2024 18:11:39 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Q8U1XYpX"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7F11266132 for ; Mon, 9 Dec 2024 18:11:37 +0100 (CET) Received: from pb-laptop.tail49a43.ts.net (185.221.143.90.nat.pool.zt.hu [185.221.143.90]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B04F5502 for ; Mon, 9 Dec 2024 18:11:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1733764265; bh=CRflvJYj94S5hjYBJ0u69gEHfO01zGh6nF5BAaVkSFw=; h=From:To:Subject:Date:From; b=Q8U1XYpX7+zmqotaCtDtEQsSrvWgOdC8wteW7mhIUcRxA+x1g3zciVKD9hIj4N+eN 0WAsLCsdo4y7TP8bTfy4rCbsKSMg4iWcgefX/FY5eZ3DskIaPSAjFJBTiVJS/JYwS3 OlM0kQ3KLNhLio8fqgHvlliLuIpRKr+mhWP/6ohk= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [libcamera-ci] [PATCH v2] Enable `cpp_debugstl` Date: Mon, 9 Dec 2024 18:11:28 +0100 Message-ID: <20241209171128.270901-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.47.1 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" Meson's `cpp_debugstl` built-in option enables extra checks in libstdc++ and libc++, such as iterator invalidation tests, bounds checking in the `operator[]` of multiple types, etc. by setting `GLIBCXX_DEBUG` and `_LIBCPP_HARDENING_MODE`. Enable it in the same cases ASan is enabled as they are somewhat similar debugging tools. Signed-off-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart Acked-by: Kieran Bingham --- https://gitlab.freedesktop.org/pobrn/libcamera/-/pipelines/1326230 Changes in v2: * do not rebuild containers * note that it is enabled when ASan is enabled --- gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) -- 2.47.1 diff --git a/gitlab-ci.yml b/gitlab-ci.yml index ea038ec..c78235e 100644 --- a/gitlab-ci.yml +++ b/gitlab-ci.yml @@ -15,6 +15,7 @@ variables: -D android=enabled -D b_sanitize=address -D cam=enabled + -D cpp_debugstl=true -D documentation=enabled -D gstreamer=enabled -D lc-compliance=enabled @@ -389,6 +390,7 @@ test-unit: MESON_OPTIONS: >- -D b_sanitize=address -D cam=disabled + -D cpp_debugstl=true -D documentation=disabled -D gstreamer=enabled -D lc-compliance=disabled