diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-01-15 14:44:37 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-06-05 17:58:36 +0800 |
commit | fc5e8c10149478bf208477f887de72c616aa42eb (patch) | |
tree | 893edf052e713b1fd7c4406b0c61dcc0b8077964 /meson.build | |
parent | 10307fd448d0260c0b15a417fd63a437e9607a35 (diff) | |
download | pango-fc5e8c10149478bf208477f887de72c616aa42eb.tar.gz |
Visual Studio: Use -utf-8 when available
This avoids the build erroring out on C4819 (Unicode handling issue in Visual
Studio compilers), notably when running on Chinese, Japanese and Korean
locales.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index fa98dabb..904027ba 100644 --- a/meson.build +++ b/meson.build @@ -57,8 +57,8 @@ common_ldflags = [] if cc.get_id() == 'msvc' # Compiler options taken from msvc_recommended_pragmas.h # in GLib, based on _Win32_Programming_ by Rector and Newcomer - test_cflags = [] - add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c') + test_cflags = ['-FImsvc_recommended_pragmas', '-utf-8'] + add_project_arguments(cc.get_supported_arguments(test_cflags), language: 'c') test_c_only_flags = [] elif cc.get_id() == 'gcc' or cc.get_id() == 'clang' test_c_only_flags = [ |