From 58d7fe43076a9825cf1f99d94ce224445ab9e405 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Sep 2021 22:22:18 -0400 Subject: Add support for building Wasm with emscripten --- meson/suppressions/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meson/suppressions/meson.build') 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 -- cgit v1.2.1