[gdk-pixbuf/msvc.improvements] Visual Studio builds: use -utf-8 if available
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/msvc.improvements] Visual Studio builds: use -utf-8 if available
- Date: Thu, 20 Feb 2020 04:23:56 +0000 (UTC)
commit be79999c3947860d76da7622e38d259082f50f86
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Feb 20 12:22:09 2020 +0800
Visual Studio builds: use -utf-8 if available
This avoids the build from erroring out due to warning/error C4819 (Unicode
handling issue in the compiler), which is likely to occur on Chinese, Japanese
and Korean locales
meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 6aebaed1d..411af6ec3 100644
--- a/meson.build
+++ b/meson.build
@@ -119,8 +119,8 @@ common_ldflags = []
if cc.get_id() == 'msvc'
# For Visual Studio, just force-include msvc_reommended_pragmas.h
# so that we silence unwanted noise and track potential issues
- test_cflags = []
- add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c')
+ test_cflags = [ '-FImsvc_recommended_pragmas.h', '-utf-8' ]
+ add_project_arguments(cc.get_supported_arguments(test_cflags), language: 'c')
elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
test_cflags = [
'-Wpointer-arith',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]