[atk/msvc.improvements: 11/11] Visual Studio builds: Use -utf-8 if available
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk/msvc.improvements: 11/11] Visual Studio builds: Use -utf-8 if available
- Date: Thu, 20 Feb 2020 04:14:46 +0000 (UTC)
commit f2add079715187471cd47b1fa6a3a67f2bd6633b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Jan 15 14:29:56 2020 +0800
Visual Studio builds: Use -utf-8 if available
This avoids the build erroring out on C4819 (Unicode handling issue in the Visual
Studio compiler), which notably occurs on Chinese, Korean and Japanese locales.
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 6dab01f..b54ce91 100644
--- a/meson.build
+++ b/meson.build
@@ -44,7 +44,7 @@ darwin_versions = ['@0@'.format(current + 1), '@0@.@1@'.format(current + 1, atk_
add_project_arguments([ '-DG_DISABLE_SINGLE_INCLUDES', '-DATK_DISABLE_SINGLE_INCLUDES' ], language: 'c')
if cc.get_id() == 'msvc'
- add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c')
+ add_project_arguments(cc.get_supported_arguments(['-FImsvc_recommended_pragmas.h', '-utf-8']), language:
'c')
endif
# Compiler and linker flags
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]