From nobody Tue Feb 10 01:19:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1698253649; cv=none; d=zohomail.com; s=zohoarc; b=ZNIk/NlWp1EF1wQa8tr06enXe+HW5da3LTCMq/bPk+ZXu9pj6xZU3/EM3KvM2aHqYR5S82gQFIuHLfhKgT+YKtu+Eu3aIgr/zoUg3VtZzOF3WOCsaJ+4tGG1hb23Ce64E49QNGda4Spq4yRhIANubs0W8Ft3e4qJCxPZtDVy21M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698253649; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=u53SewZUJFqzSsC2W+n+bgnMuiWgV/L4vGgOG5ZWEXw=; b=A+nOGSRgwbPAQOAebyMZBuwLQISJ1cRSK4NK5jTP2bl1s2sHKaad6m83puMOH/DR0UEq4yTQhyqCSOxhRmim6tSD4c+VFoOyuhINphsJoDfaTdQAq9athG4bVf+sHy1F/QRltK1h7bJFoysC3Qfo0Bo6tno1h8Cml4eQHXURA3c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 169825364958091.66797904922225; Wed, 25 Oct 2023 10:07:29 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-650-sRhYFPSHMSGzW1rpFapbUQ-1; Wed, 25 Oct 2023 13:07:22 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0CA96185A787; Wed, 25 Oct 2023 17:07:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id EDA04C1596D; Wed, 25 Oct 2023 17:07:15 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D9B1A194658D; Wed, 25 Oct 2023 17:07:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 89168194658C for ; Wed, 25 Oct 2023 17:07:14 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6DFE0492BE7; Wed, 25 Oct 2023 17:07:14 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.224.90]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 74A13492BF1 for ; Wed, 25 Oct 2023 17:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698253648; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=u53SewZUJFqzSsC2W+n+bgnMuiWgV/L4vGgOG5ZWEXw=; b=XG7asOovnrl5u6QTGQN4XLBdKc1pvG1WdfnfpIBzRvLCLu0lBFtqfZOudu052erthb0Bqs IWYmvRG0rjdKW2uRPjx9s6U0saeVdIsP8IpjARY27xCGjkoWFc78kxeUScCWpsIaR/ziTT zvG3Wi1Nb6fmBHYIfDR+iVkO0MgKghY= X-MC-Unique: sRhYFPSHMSGzW1rpFapbUQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH v2 5/8] meson: Handle -Dtests=enabled with Clang Date: Wed, 25 Oct 2023 19:06:58 +0200 Message-ID: <20231025170701.239137-6-abologna@redhat.com> In-Reply-To: <20231025170701.239137-1-abologna@redhat.com> References: <20231025170701.239137-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1698253651376100009 Content-Type: text/plain; charset="utf-8"; x-default="true" There are some cases in which we automatically disable tests when using Clang as the compiler. If the user has explicitly asked for tests to be enabled, however, we should error out instead of silently disabling things. Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a372f99c21..ea8ee84ba0 100644 --- a/meson.build +++ b/meson.build @@ -2035,7 +2035,11 @@ if build_tests[0] and \ # If CLang doesn't support -fsemantic-interposition then our # mocking doesn't work. The best we can do is to not run the # test suite. - build_tests =3D [ false, '!!! Forcibly disabling tests because CLang la= cks -fsemantic-interposition. Update CLang or disable optimization !!!' ] + msg =3D 'Forcibly disabling tests because CLang lacks -fsemantic-interp= osition. Update CLang or disable optimization' + if get_option('tests').enabled() + error(msg) + endif + build_tests =3D [ false, '!!! @0@ !!!'.format(msg) ] endif =20 if get_option('expensive_tests').auto() --=20 2.41.0