[gtksourceview: 3/5] Remove usage of add_global_arguments()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview: 3/5] Remove usage of add_global_arguments()
- Date: Wed, 27 Oct 2021 17:18:43 +0000 (UTC)
commit dda531919fb2c96a9f8a3c5f4c8240bd7bc29142
Author: Tristan Partin <tristan partin io>
Date: Tue Oct 19 00:56:07 2021 -0500
Remove usage of add_global_arguments()
add_global_arguments() is an anti-pattern because it affects the parent
build. add_project_arguments() stays in the subproject "sandbox".
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 10882ce6..e2b3bdfa 100644
--- a/meson.build
+++ b/meson.build
@@ -293,7 +293,7 @@ test_link_args = [
'-Wl,-z,relro', # Read-only segments after relocation
]
if not buildtype.startswith('debug')
- add_global_arguments([
+ add_project_arguments([
'-DG_DISABLE_ASSERT',
'-DG_DISABLE_CAST_CHECKS',
], language: 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]