summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-12-20 16:44:58 +0800
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2019-12-20 12:54:50 +0100
commit75119d0a346d1739c16a5117ed2ff17412241ff1 (patch)
treea7af1bd38d6f7042632a51f0722c6650f7ea4489
parentd52b838e5b4b06d1fbee56564301f295835c12a3 (diff)
downloadsigc++-75119d0a346d1739c16a5117ed2ff17412241ff1.tar.gz
meson.build: Enable /utf-8 for MSVC builds
This avoids warnings and mis-compilations on certain system locales when building on Visual Studio, in particular Chinese, Japanese and Korean versions of Windows.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 85e2103..316a347 100644
--- a/meson.build
+++ b/meson.build
@@ -151,7 +151,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']
+ foreach wd : ['/FImsvc_recommended_pragmas.h', '/wd4267', '/wd4530', '/utf-8']
disabled_warning = cpp_compiler.get_supported_arguments(wd)
add_project_arguments(disabled_warning, language: 'cpp')
endforeach