From nobody Sun Nov 24 11:18:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1724757942; cv=none; d=zohomail.com; s=zohoarc; b=JhgmI6y0QCJpHY9muVSvcPBEclNlwc9pllkTN1JPMWJsmxTHOtLA1umobTbr6t8XrFNThfewBaN137uJ67LnF+MIUfW0EKLTfIpy9bcLCasLMyapK0g0yi0zkM820NHu2DLadKAqdTeRw+EJxn0CPP8vxuC7cMS9Q6w7i/rr9+U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1724757942; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=6023lRD220fUKA6bf48jqfG/QjqXt5noiDcRHVXsjQg=; b=gCPgzdgbD8muFCLJjf7GR3Hk+LmlMJoMUSzA08b9F2uyPcXAwaIaFny3Kz1urqSk2gAna/Gg22KrKo5f2nlw24osJtYS1e80HUA7VYRKkUK2uVbx8AjmTdTh1T+ERShK8N22PP5H+++YXqAdXXJlTpZObADIKNKQW96v69GjRS0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1724757942476980.1493867866412; Tue, 27 Aug 2024 04:25:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siuIn-0002pg-MJ; Tue, 27 Aug 2024 07:23:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siuIl-0002i9-QV for qemu-devel@nongnu.org; Tue, 27 Aug 2024 07:23:55 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1siuIj-0000k0-Qm for qemu-devel@nongnu.org; Tue, 27 Aug 2024 07:23:55 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a8682bb5e79so710612066b.2 for ; Tue, 27 Aug 2024 04:23:53 -0700 (PDT) Received: from [127.0.1.1] (adsl-242.37.6.163.tellas.gr. [37.6.163.242]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e594fa62sm96280066b.198.2024.08.27.04.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 04:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724757832; x=1725362632; darn=nongnu.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6023lRD220fUKA6bf48jqfG/QjqXt5noiDcRHVXsjQg=; b=OtaTYarLKejGprqzKHe5CrLzYGEMa2aIZhjM0+FuHSga1I3Lqt9E0RTbQkuYRjzowl w8RzKMCSCZ/CHe/Rsn21Ghp79M4zKZQhyFpAq6sBrIQGCQPAwFP38OXLN1C6K+oUkTsL HHe5dvXQ5a267d1J0Q70NYB8/jNFvKZY4rA0s1t17453XSyBtNRwryPTM7z6Mv5OUtqc V0KwMGxZ7EnFMWgySNDvjjD770EHXSAid1f+cCssnKPO9BOcKvbcri2QVUxKFdzB87pu xcx3oInvhMaeACem/+DOYVO/rBeBiOHnKdchkm3iWKiLmtmx+ldhLJ+ptyYXvNPWpAZY XewA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724757832; x=1725362632; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6023lRD220fUKA6bf48jqfG/QjqXt5noiDcRHVXsjQg=; b=f8F2p2Z1xTTeBfVuWM/aENWdECdg1uPCMiq5tIIIFzgqJ7KiqsFGq+SnUTRyaNAeoG ZhdQlt8LimvG9QPgcMiHB+KMOhqfvqn0brBBEBKPfh2+E+JDCSNd+RIWATjX5XqoCXv8 2C1oTtJDJB1xlkUZtiae/eczEsVmszhAfPpep22EHZaHwnCJoGBPaFCML+6vdjUrliy3 3Q9C+VHs+xhwrMmW4wExyTz1HlHRNR0OiQEUiCPjSyBkByP6blvYP6bQQCiu2WWtusIA +eeSxtM2eprjHUWXKs+AI2s+kEl6chKwLxjIMR6IYHII9uk6vk2gOx3GrdfSuK017bdx x4HQ== X-Gm-Message-State: AOJu0YxnNFmd1jF80pVLvIUOCL3Hie6m4frVkMedTfNJ9F8AA0uHWyjY eKFG4qq2EXgT/0YzOxVndpa/8fQKLn017KGwgFafPeHiyc/HxR5JCsj8i+4cRpg= X-Google-Smtp-Source: AGHT+IEaXlbsewDN3gBqdWwnjzEcwhaVvmrvDDcVMFjl2LpNb0VNaqI6jlIaAvrZa0PdDEczhAwBGQ== X-Received: by 2002:a17:907:e646:b0:a86:89ea:ee6c with SMTP id a640c23a62f3a-a86a52de5d5mr1012626066b.30.1724757831988; Tue, 27 Aug 2024 04:23:51 -0700 (PDT) From: Manos Pitsidianakis Date: Tue, 27 Aug 2024 14:23:15 +0300 Subject: [PATCH v9 6/9] meson.build: add HAVE_GLIB_WITH_ALIGNED_ALLOC flag MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240827-rust-pl011-v9-6-e90b9c28f861@linaro.org> References: <20240827-rust-pl011-v9-0-e90b9c28f861@linaro.org> In-Reply-To: <20240827-rust-pl011-v9-0-e90b9c28f861@linaro.org> To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Richard Henderson , Gustavo Romero , =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Maydell , Junjie Mao , Zhao Liu , Manos Pitsidianakis X-Mailer: b4 0.15-dev-b8758 X-Developer-Signature: v=1; a=openpgp-sha256; l=1723; i=manos.pitsidianakis@linaro.org; h=from:subject:message-id; bh=BHZl+cDvjx6vCSPrL4UwCDjF/NsyQKlyuKtsv2MOHNE=; b=LS0tLS1CRUdJTiBQR1AgTUVTU0FHRS0tLS0tCgpvd0VCYlFLUy9aQU5Bd0FLQVhjcHgzQi9mZ 25RQWNzbVlnQm16YmMwRXJUWFVrOGg3allLZ3lici9qYlZ2MHdNClVxTXpOM2drYnM3R2Q0bDNE bkNKQWpNRUFBRUtBQjBXSVFUTVhCdE9SS0JXODRkd0hSQjNLY2R3ZjM0SjBBVUMKWnMyM05BQUt DUkIzS2Nkd2YzNEowTk5aRUFDSVFUN2hka0w5UlpzcGZPYUlFVXlvQ21oUmF5aWZhUWpXSmV4aQ pzOFhzUmFCazhiTnhQazZuVzMwcXd3d2pPcFRPUDlqMUlhaTZiMjBXRkdIQXBHMVN4ZGo4dDR4S i9LNWUwV0Z6Ck16eG5BWlZvSklGMTljMmZmOUcrald3dWJ4NHlFZ2JaUkJubUR0SmRYUFdOUlg0 VGd6SFlvd0prNVZPNUN2cnoKSjBmNDVFcDJNUTdCcGpRYklyMTg5RGlYVGxPUHlpbXFuOTVlTzh rdE5ZOTlna3lTZkVaRzQ3dmpVdFBPTTc0Zgp2WUVGOUJMQlhkSmNoSlZwcWtNeGRsL1JrNVlybn NVRXNHNWp4anowQnlxS3pmeHQxTzBDRFhzMzh1dTZYb3hkCkJ3L3ZHenVBeXZnN3dNdVUvcENoR GlTa1FtYTN0ZDYyc1lHV3dxQ1ZUS1JocFhTR1krM2E5aWJpQXlWRTliWlUKbDh1alpTWUNtM1dT Uy9qSUtqZE5zTkQ1T2ltQnVtVzlPNzdWUVVBQ3RIVXI2MnBrL1krZ3JMWGMyMnFWUStVcwo5MEJ uQlg3Ly9VWmtZWUJzVGtaeEdreWZBUll4cEJYRzFOWUtUSU5oaTdEMmZ2dklrdFZmSVFQTTI3WX R0S0N3CmVHZlEzbGd6ZHVsQUNhYmVWQmhScC9aMHNSNWxNQVRTNzd6c29xMmNXT1p6ZUhWcmxWL zduWm5McUtjemMramEKRjYyeTJ5SlcrSkU4OUtPMnJKTEpHY2tsSkhvQ0x2b1ZiKzR4SGs0dis1 M2g2S3F1SHp2Q2pHbDlaMDlmc0ZvTgp6dktUOE42SGdFbzByV28yLzZaWXNqWUIzV2pLN1RBcEN FUjFSdWg5ck1LL0ZNYWNqNTJLL3RoRG45MTNYQmM4CldYTDhYUT09Cj0wb3JuCi0tLS0tRU5EIF BHUCBNRVNTQUdFLS0tLS0K X-Developer-Key: i=manos.pitsidianakis@linaro.org; a=openpgp; fpr=7C721DF9DB3CC7182311C0BF68BC211D47B421E1 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1724757944095116600 Rust crates, introduced from the next commit onwards, use the glib allocator API and need to know whether g_aligned_alloc etc are available. This commit adds a define in config_host_data that depends on glib version >=3D 2.72. Signed-off-by: Manos Pitsidianakis --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 05446acbc6..7f05466d12 100644 --- a/meson.build +++ b/meson.build @@ -979,6 +979,9 @@ glib =3D declare_dependency(dependencies: [glib_pc, gmo= dule], # TODO: remove this check and the corresponding workaround (qtree) when # the minimum supported glib is >=3D 2.75.3 glib_has_gslice =3D glib.version().version_compare('<2.75.3') +# Check whether glib has the aligned_alloc family of functions. +# +glib_has_aligned_alloc =3D glib.version().version_compare('>=3D2.72.0') =20 # override glib dep to include the above refinements meson.override_dependency('glib-2.0', glib) @@ -2508,6 +2511,7 @@ config_host_data.set('CONFIG_TIMERFD', cc.has_functio= n('timerfd_create')) config_host_data.set('HAVE_COPY_FILE_RANGE', cc.has_function('copy_file_ra= nge')) config_host_data.set('HAVE_GETIFADDRS', cc.has_function('getifaddrs')) config_host_data.set('HAVE_GLIB_WITH_SLICE_ALLOCATOR', glib_has_gslice) +config_host_data.set('HAVE_GLIB_WITH_ALIGNED_ALLOC', glib_has_aligned_allo= c) config_host_data.set('HAVE_OPENPTY', cc.has_function('openpty', dependenci= es: util)) config_host_data.set('HAVE_STRCHRNUL', cc.has_function('strchrnul')) config_host_data.set('HAVE_SYSTEM_FUNCTION', cc.has_function('system', pre= fix: '#include ')) --=20 2.45.2