From nobody Sun Oct 5 02:12:09 2025 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1759246966; cv=none; d=zohomail.com; s=zohoarc; b=lxLUMwdPHZiIG1vraziIzGMTiEnzuTsLMPkw0CjUKi+1EgrSeRpaPqgdXkANWowpJBQpgzV6CYS76c4zO92Qw50I0KrkUi+4oJ/j83RTpuJkbnpBNSQ07Nm/8LHYJd3ljWdFcDAWnzPIt+GmaXmaphdhLc0PHr73yAIk0sou2U8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759246966; 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=Ur2CFh9jHfPfPO1oX0i6A1mMPpaXQriNnJj9tG5ZE2k=; b=fbERPoo/WPyeqFPhZrKtAfKKPy7zZJH4RpppOy4yKyXgI6fIaSpRjqHR3UMvxMbYQKWsN2HNuGloAdvkdWmmVK5oTvO7Ewj50hjRSoB8EjWSgD8OwWz+A2/bXaVmXf97WhDOuq/iFDUGSNEGoHe1c/3OJhzjptbbBa3sXpIzebg= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1759246966198838.1033275731045; Tue, 30 Sep 2025 08:42:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v3cU7-0003fW-U0; Tue, 30 Sep 2025 11:41:49 -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 1v3cT4-0001xS-56 for qemu-devel@nongnu.org; Tue, 30 Sep 2025 11:40:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v3cSf-0004yd-H9 for qemu-devel@nongnu.org; Tue, 30 Sep 2025 11:40:40 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-364-l03ZvknAO1y6Vsz_ltPfGA-1; Tue, 30 Sep 2025 11:40:09 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 234F61800284; Tue, 30 Sep 2025 15:40:07 +0000 (UTC) Received: from localhost (unknown [10.45.242.7]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id BE30A19560B4; Tue, 30 Sep 2025 15:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759246812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ur2CFh9jHfPfPO1oX0i6A1mMPpaXQriNnJj9tG5ZE2k=; b=Cyo2olNBjftg2ZwOwQCKpWNB9JlyqDBJ9BB3CoSrpgNiTNnXiAGnj50Bz+NRrb4imnQBNd /noZwKj6am+OtJgLH6AdLY8vBFEt5FhX4Iu+AH1jgNnNzV0/GkRiLM+6KEqfKshjYwc9MY mB/FNWfU3KVlZypqnhQs7ahPiOu+6pw= X-MC-Unique: l03ZvknAO1y6Vsz_ltPfGA-1 X-Mimecast-MFC-AGG-ID: l03ZvknAO1y6Vsz_ltPfGA_1759246807 From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Cc: devel@lists.libvirt.org, Manos Pitsidianakis , Jiaxun Yang , Kohei Tokunaga , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , qemu-rust@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Li-Wen Hsu , Warner Losh , Kyle Evans , Ed Maste , Thomas Huth Subject: [PULL 23/23] build-sys: pass -fvisibility=default for wasm bindgen Date: Tue, 30 Sep 2025 19:37:44 +0400 Message-ID: <20250930153746.573875-24-marcandre.lureau@redhat.com> In-Reply-To: <20250930153746.573875-1-marcandre.lureau@redhat.com> References: <20250930153746.573875-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=no 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 @redhat.com) X-ZM-MESSAGEID: 1759246968144116600 From: Marc-Andr=C3=A9 Lureau Otherwise, no functions are generated: https://github.com/rust-lang/rust-bindgen/issues/2989 Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Kohei Tokunaga Message-ID: <20250924120426.2158655-27-marcandre.lureau@redhat.com> --- meson.build | 4 ++++ rust/bql/meson.build | 1 + rust/chardev/meson.build | 1 + rust/hw/char/pl011/meson.build | 1 + rust/hw/core/meson.build | 1 + rust/migration/meson.build | 3 ++- rust/qom/meson.build | 1 + rust/system/meson.build | 1 + rust/util/meson.build | 1 + 9 files changed, 13 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 762c533a31..55c8202a4d 100644 --- a/meson.build +++ b/meson.build @@ -4256,6 +4256,10 @@ if have_rust else bindgen_args_common +=3D ['--merge-extern-blocks'] endif + bindgen_c_args =3D [] + if host_arch =3D=3D 'wasm32' + bindgen_c_args +=3D ['-fvisibility=3Ddefault'] + endif subdir('rust') endif =20 diff --git a/rust/bql/meson.build b/rust/bql/meson.build index 7214d94408..bc51c7f160 100644 --- a/rust/bql/meson.build +++ b/rust/bql/meson.build @@ -21,6 +21,7 @@ _bql_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common, + c_args: bindgen_c_args, ) =20 _bql_rs =3D static_library( diff --git a/rust/chardev/meson.build b/rust/chardev/meson.build index 370895c111..e7ce02b3bc 100644 --- a/rust/chardev/meson.build +++ b/rust/chardev/meson.build @@ -20,6 +20,7 @@ _chardev_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common + _chardev_bindgen_args, + c_args: bindgen_c_args, ) =20 _chardev_rs =3D static_library( diff --git a/rust/hw/char/pl011/meson.build b/rust/hw/char/pl011/meson.build index ffdc8af53f..a33f32906e 100644 --- a/rust/hw/char/pl011/meson.build +++ b/rust/hw/char/pl011/meson.build @@ -12,6 +12,7 @@ _libpl011_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common, + c_args: bindgen_c_args, ) =20 _libpl011_rs =3D static_library( diff --git a/rust/hw/core/meson.build b/rust/hw/core/meson.build index 81d8c77f9a..e1ae95ed61 100644 --- a/rust/hw/core/meson.build +++ b/rust/hw/core/meson.build @@ -41,6 +41,7 @@ _hwcore_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common + _hwcore_bindgen_args, + c_args: bindgen_c_args, ) =20 _hwcore_rs =3D static_library( diff --git a/rust/migration/meson.build b/rust/migration/meson.build index 2a49bd1633..ddf5c2f51d 100644 --- a/rust/migration/meson.build +++ b/rust/migration/meson.build @@ -22,7 +22,8 @@ _migration_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common + _migration_bindgen_args, - ) + c_args: bindgen_c_args, +) =20 _migration_rs =3D static_library( 'migration', diff --git a/rust/qom/meson.build b/rust/qom/meson.build index 21e12148da..71fdac696c 100644 --- a/rust/qom/meson.build +++ b/rust/qom/meson.build @@ -12,6 +12,7 @@ _qom_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common, + c_args: bindgen_c_args, ) =20 _qom_rs =3D static_library( diff --git a/rust/system/meson.build b/rust/system/meson.build index 3ec140de01..0859f39745 100644 --- a/rust/system/meson.build +++ b/rust/system/meson.build @@ -20,6 +20,7 @@ _system_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common + _system_bindgen_args, + c_args: bindgen_c_args, ) =20 _system_rs =3D static_library( diff --git a/rust/util/meson.build b/rust/util/meson.build index 7ca69939ce..094b43355a 100644 --- a/rust/util/meson.build +++ b/rust/util/meson.build @@ -22,6 +22,7 @@ _util_bindings_inc_rs =3D rust.bindgen( include_directories: bindings_incdir, bindgen_version: ['>=3D0.60.0'], args: bindgen_args_common + _util_bindgen_args, + c_args: bindgen_c_args, ) =20 _util_rs =3D static_library( --=20 2.51.0