[pangomm] meson.build: Check for /utf-8 on Visual Studio



commit d5dc6cb1650c181f27d4185299e503624591623f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Jun 29 19:03:04 2020 +0800

    meson.build: Check for /utf-8 on Visual Studio
    
    Enable this compiler flag on Visual Studio if it is supported, so that building
    under non-English (East Asian) locales is made easier, which helps to avoid the
    C4819 error under such situations, due to a Unicode handling issue in the
    compiler when running under such locales

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index adea77f..ab3304c 100644
--- a/meson.build
+++ b/meson.build
@@ -186,7 +186,7 @@ add_project_arguments(warning_flags, language: 'cpp')
 # MSVC: Ignore warnings that aren't really harmful, but make those
 #       that should not be overlooked stand out.
 if is_msvc
-  foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530', '/wd4251', '/wd4275']
+  foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530', '/wd4251', '/wd4275', '/utf-8']
     disabled_warning = cpp_compiler.get_supported_arguments(wd)
     add_project_arguments(disabled_warning, language: 'cpp')
   endforeach


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]