[fontconfig] Enable WebAssembly atomics and bulk-memory (#41238)

This commit is contained in:
Frank 2024-09-30 17:28:32 +00:00 committed by GitHub
parent 6e8b114e0e
commit 2b4200d3f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff --git a/meson.build b/meson.build
index 8e78700..95bae59 100644
--- a/meson.build
+++ b/meson.build
@@ -112,6 +112,9 @@ check_alignofs = [
]
add_project_arguments('-DHAVE_CONFIG_H', language: 'c')
+if cc.get_id() == 'clang' and host_machine.cpu_family() == 'wasm'
+ add_project_arguments('-matomics', '-mbulk-memory', language: 'c')
+endif
c_args = []

View File

@ -8,6 +8,7 @@ vcpkg_from_gitlab(
PATCHES
no-etc-symlinks.patch
libgetopt.patch
fix-wasm-shared-memory-atomics.patch
)
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")

View File

@ -1,6 +1,7 @@
{
"name": "fontconfig",
"version": "2.15.0",
"port-version": 1,
"description": "Library for configuring and customizing font access.",
"homepage": "https://www.freedesktop.org/wiki/Software/fontconfig",
"license": "MIT",

View File

@ -2858,7 +2858,7 @@
},
"fontconfig": {
"baseline": "2.15.0",
"port-version": 0
"port-version": 1
},
"foonathan-lexy": {
"baseline": "2022.12.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "443f2cc8005cd715e8786521c1c2cd990a1320a8",
"version": "2.15.0",
"port-version": 1
},
{
"git-tree": "2a11e54fe49673d52f0c4d2df73870f36a228990",
"version": "2.15.0",