[gtksourceview: 3/5] Remove usage of add_global_arguments()




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]