From nobody Sun Sep 28 16:35:43 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=1758715970; cv=none; d=zohomail.com; s=zohoarc; b=Roxg9vRDBTQwbAfan7rqcBVrJQGAYRi4flGseefMSqy5AMPD6JUn6C8gTdZUygSRjDtg4/iUWLpiT+IM3FIiBQD1VVavkcezeO+n/fnoRBGOAyjcP9VqPMj4LVkof7NxfI8TeaoADrEhLP+R+3MMpoxv1gVt6ZRNg8oCRTO2Tbs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1758715970; 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=1m2pHWywfrRLUvLMktLjK/bEHRZ6iHxYBR9qqTKd0K0=; b=gBFXiTId2iybF2SLKU13uwBhyqucKMR34bmm6YXSxAq3RPNdRieqncUEUWT4ZTiyFZXqn99cq9zKlInCAxJUQYAYjIz1lzxyn+6Or+vedTjmZvrMwi8I6m1YTrVHU9NRN8pVXchlQYioftNRl8lkqChZejhTU+q2v7ITCh8FlaA= 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 1758715970752939.4473970842456; Wed, 24 Sep 2025 05:12:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v1OK0-0005xv-N1; Wed, 24 Sep 2025 08:10:10 -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 1v1OI1-0003X0-3i for qemu-devel@nongnu.org; Wed, 24 Sep 2025 08:08:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v1OHp-0006Mn-Tj for qemu-devel@nongnu.org; Wed, 24 Sep 2025 08:08:04 -0400 Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-77-28G4wHH4MI2PkQPuT7kllQ-1; Wed, 24 Sep 2025 08:07:43 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 49466195609F; Wed, 24 Sep 2025 12:07:41 +0000 (UTC) Received: from localhost (unknown [10.44.22.38]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 07DDF3000198; Wed, 24 Sep 2025 12:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758715668; 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=1m2pHWywfrRLUvLMktLjK/bEHRZ6iHxYBR9qqTKd0K0=; b=A3ZlMEty5Db088HmREuVJCZjSsObuIR8lvKL2OhEQJqN7Ya8yJPmdGUizgyOzHRECewpjS u/f3F4177UpG5B5WRikNwETOMbYKHUbqnEl8a0G/uMEMlW2yEhoEI9aYzxoM3N0v7Nsne9 omBw0iyP3MkC3yZJ7Mzx5E41csajvTQ= X-MC-Unique: 28G4wHH4MI2PkQPuT7kllQ-1 X-Mimecast-MFC-AGG-ID: 28G4wHH4MI2PkQPuT7kllQ_1758715661 From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Kyle Evans , Yonggang Luo , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Li-Wen Hsu , Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Warner Losh , Manos Pitsidianakis , Jiaxun Yang , Ed Maste , devel@lists.libvirt.org, qemu-rust@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Kohei Tokunaga Subject: [PATCH v2 26/27] build-sys: pass -fvisibility=default for wasm bindgen Date: Wed, 24 Sep 2025 16:04:23 +0400 Message-ID: <20250924120426.2158655-27-marcandre.lureau@redhat.com> In-Reply-To: <20250924120426.2158655-1-marcandre.lureau@redhat.com> References: <20250924120426.2158655-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.4.1 on 10.30.177.4 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.129.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.444, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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: 1758715973206116600 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 --- 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 2f134c9e75..cd2b5fa863 100644 --- a/meson.build +++ b/meson.build @@ -4255,6 +4255,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 f369209dfd..d020a519bf 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 5e820d43f5..4f8e4ec9d3 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 40c51b71b2..9df09f62b4 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 87a893673d..9dcde4fae0 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