diff options
Diffstat (limited to 'tests/meson.build')
-rw-r--r-- | tests/meson.build | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/tests/meson.build b/tests/meson.build index 9c7c0765..369abac8 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -65,9 +65,13 @@ test_everything_files = custom_target('everything', test_everything_headers = [test_everything_files[0]] test_everything_sources = [test_everything_files[1]] -custom_c_args = cc.get_supported_arguments([ - '-Wno-unused-parameter', -]) +custom_c_args = [] +if cc.get_id() != 'msvc' + custom_c_args = cc.get_supported_arguments([ + '-Wno-unused-parameter', + ]) +endif + everything_lib = shared_library('everything-1.0', sources: test_everything_sources, include_directories : configinc, @@ -76,9 +80,12 @@ everything_lib = shared_library('everything-1.0', version: '1.0.0', ) -custom_c_args = cc.get_supported_arguments([ - '-Wno-unused-parameter', -]) +if cc.get_id() != 'msvc' + custom_c_args = cc.get_supported_arguments([ + '-Wno-unused-parameter', + ]) +endif + gimarshallingtests_lib = shared_library('gimarshallingtests-1.0', sources: test_marshalling_sources, include_directories : configinc, |