[atkmm/kjellahl/meson-build-master] meson: Use /utf-8 for Visual Studio builds



commit 967102b7efb00a9179c52b52505b98b354767588
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Apr 17 12:05:44 2020 +0800

    meson: Use /utf-8 for Visual Studio builds
    
    We check for its presence and use it if there, which is always the case since we need
    Visual Studio 2017 15.7.x or later.  This avoids warning (error) C4819 being  triggered
    when attempting to build atkmm on East Asian locales of Windows.

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 58d9c74..f654a05 100644
--- a/meson.build
+++ b/meson.build
@@ -251,7 +251,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]