[glib/wip/meson: 21/35] meson: use add_project_arguments() instead of add_global_arguments()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/meson: 21/35] meson: use add_project_arguments() instead of add_global_arguments()
- Date: Mon, 8 May 2017 12:35:41 +0000 (UTC)
commit 3ea70897f7d9ed867b93b95c1d68b4e6f66a8020
Author: Tim-Philipp Müller <tim centricular com>
Date: Thu Feb 16 09:50:56 2017 +0000
meson: use add_project_arguments() instead of add_global_arguments()
add_global_arguments() doesn't work if the project is used as a
subproject.
meson.build | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 31a14e0..6ef0898 100644
--- a/meson.build
+++ b/meson.build
@@ -15,7 +15,7 @@ if cc.get_id() == 'msvc'
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
# If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
# NOTE: Only add warnings here if you are sure they're spurious
- add_global_arguments('/wd4244', '/wd4305', '/wd4035', '/wd4715', '/wd4116',
+ add_project_arguments('/wd4244', '/wd4305', '/wd4035', '/wd4715', '/wd4116',
'/wd4046', '/wd4068', '/wo4090', language : 'c')
# Disable SAFESEH with MSVC for plugins and libs that use external deps that
# are built with MinGW
@@ -27,8 +27,6 @@ endif
host_system = host_machine.system()
-#add_global_arguments('-Werror', language : 'c') # FIXME
-
glib_version = meson.project_version()
glib_api_version = '2.0'
version_arr = glib_version.split('.')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]