[pangomm/use-dllexport-2-42: 1/2] meson.build: Use /utf-8 in Visual Studio builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pangomm/use-dllexport-2-42: 1/2] meson.build: Use /utf-8 in Visual Studio builds
- Date: Wed, 18 Mar 2020 10:37:51 +0000 (UTC)
commit 54f456ddf393c531f9246aed8be0a019ab814f06
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Mar 18 18:35:43 2020 +0800
meson.build: Use /utf-8 in Visual Studio builds
...if it is available. Also disable warning C4828 as we will get that warning
when building gendef.exe with /utf-8.
meson.build | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/meson.build b/meson.build
index f9774fc..9d200a6 100644
--- a/meson.build
+++ b/meson.build
@@ -209,6 +209,11 @@ endif
# Set compiler warnings.
warning_flags = []
+
+if is_msvc
+ add_project_arguments(cpp_compiler.get_supported_arguments([ '/utf-8', '/wd4828']), language: 'cpp')
+endif
+
if warning_level == 'min'
if is_msvc
warning_flags = ['/W3']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]