summaryrefslogtreecommitdiffstats
path: root/meson/suppressions/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-09-19 22:22:18 -0400
committerDavid Robillard <d@drobilla.net>2022-06-28 15:17:27 -0400
commit58d7fe43076a9825cf1f99d94ce224445ab9e405 (patch)
treed83b6b81b3ed2b1db070ab2264b66a05d647293c /meson/suppressions/meson.build
parent088fee1f4b4586e96c3b29314678d05a53eed9c4 (diff)
downloadzix-58d7fe43076a9825cf1f99d94ce224445ab9e405.tar.gz
zix-58d7fe43076a9825cf1f99d94ce224445ab9e405.tar.bz2
zix-58d7fe43076a9825cf1f99d94ce224445ab9e405.zip
Add support for building Wasm with emscripten
Diffstat (limited to 'meson/suppressions/meson.build')
-rw-r--r--meson/suppressions/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 1ffc1a0..2f96751 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -15,7 +15,7 @@ if is_variable('cc')
c_suppressions = []
if get_option('strict')
- if cc.get_id() == 'clang'
+ if cc.get_id() in ['clang', 'emscripten']
c_suppressions += [
'-Wno-bad-function-cast',
'-Wno-c11-extensions', # Glib
@@ -63,6 +63,11 @@ if is_variable('cc')
c_suppressions += [
'-Wno-nullability-extension',
]
+ elif cc.get_id() == 'emscripten'
+ c_suppressions += [
+ '-Wno-format',
+ '-Wno-nullability-extension',
+ ]
elif cc.get_id() == 'msvc'
c_suppressions += [
'/wd4706', # assignment within conditional expression