summaryrefslogtreecommitdiff
path: root/MSVC_NMake
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-03-04 11:19:42 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-03-05 16:13:30 +0800
commit4c2b07e68fbacbb09dcf91b44ee8cd1312ae9f21 (patch)
treefcfe0bc02e7266ec386cc2496a8fa9cdb539d4e8 /MSVC_NMake
parentdeef6e7d4629dfaa913c2c4c44f05bf5cfc382a8 (diff)
downloadglibmm-4c2b07e68fbacbb09dcf91b44ee8cd1312ae9f21.tar.gz
meson: Use /utf-8 for Visual Studio builds
This way, we can avoid warning/error C4819 when building glibmm due to unicode handling issues in the compiler, which is likely to pop up on East Asian locales on Windows. We need to ignore warning C4828 when building gendef.exe though with this.
Diffstat (limited to 'MSVC_NMake')
-rw-r--r--MSVC_NMake/gendef/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/MSVC_NMake/gendef/meson.build b/MSVC_NMake/gendef/meson.build
index 3dc9cc25..5dce0ed6 100644
--- a/MSVC_NMake/gendef/meson.build
+++ b/MSVC_NMake/gendef/meson.build
@@ -5,5 +5,5 @@
# Used to generate the .def file required to obtain the import .lib file
if is_msvc
- gendef = executable('gendef', 'gendef.cc', install: false)
+ gendef = executable('gendef', 'gendef.cc', cpp_args: '/wd4828', install: false)
endif