vcpkg/ports/fontconfig/fix-wasm-shared-memory-atomics.patch

15 lines
369 B
Diff
Raw Normal View History

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 = []