[pangomm/use-dllexport-2-42: 6/17] meson.build: Use /utf-8 in Visual Studio builds



commit 675d27122189d7b567400f868dccfbb8643c3762
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Mar 18 18:35:43 2020 +0800

    meson.build: Use /utf-8 in Visual Studio builds
    
    ...if it is available.  Also disable warning C4828 as we will get that warning
    when building gendef.exe with /utf-8.

 meson.build | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/meson.build b/meson.build
index 85da365..c2ff5d8 100644
--- a/meson.build
+++ b/meson.build
@@ -209,6 +209,11 @@ endif
 
 # Set compiler warnings.
 warning_flags = []
+
+if is_msvc
+  add_project_arguments(cpp_compiler.get_supported_arguments([ '/utf-8', '/wd4828']), language: 'cpp')
+endif
+
 if warning_level == 'min'
   if is_msvc
     warning_flags = ['/W3']


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