diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-01-14 16:59:45 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-01-15 11:02:48 +0800 |
commit | ad937bca10be979cc468b8da0d31f40f86ce0851 (patch) | |
tree | 32039d6ea9b00ff35ffe20ab10c837b7dfbde7ce /tests/offsets/meson.build | |
parent | fbc3657b769bfa156927a6a116d5967d58b5e75e (diff) | |
download | gobject-introspection-ad937bca10be979cc468b8da0d31f40f86ce0851.tar.gz |
Visual Studio builds: Use -utf-8 where available
This avoids compilation erroring out on C4819 (Unicode handling issue in the
Visual Studio compiler), notably when running on Chinese, Japanese and Korean
(CJK) locales.
This also applies -utf-8 into the cflags passed into the various g-ir-scanner
command lines that are used to generate the *.gir files, where -utf-8 is
available, so that we don't get flooded with C4819 warnings during the
build, and therefore avoid potential mishaps, as C4819 is a real warning that
warngs us the code may be incorrectly built.
Diffstat (limited to 'tests/offsets/meson.build')
-rw-r--r-- | tests/offsets/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/offsets/meson.build b/tests/offsets/meson.build index 6670f21a..71f4c8a4 100644 --- a/tests/offsets/meson.build +++ b/tests/offsets/meson.build @@ -35,6 +35,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.source_root(), 'tests'), + extra_giscanner_args, '@INPUT@', ] ) |