meson: Specify encoding as utf-8 for msvc
authorSeungha Yang <seungha.yang@navercorp.com>
Wed, 23 Oct 2019 07:54:43 +0000 (16:54 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 4 Nov 2019 20:43:18 +0000 (20:43 +0000)
Some projects does not have this option which causes verbose warnings

meson.build

index 7f7efa4..b1d2a41 100644 (file)
@@ -50,6 +50,7 @@ if not meson.is_subproject() and cc.get_id() == 'msvc'
       '/w14062', # enumerator 'identifier' in switch of enum 'enumeration' is not handled
       '/w14101', # 'identifier' : unreferenced local variable
       '/w14189', # 'identifier' : local variable is initialized but not referenced
+      cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
       language: 'c')
 endif