[gnome-builder] pipeline: use G_ENABLE_DIAGNOSTIC by default



commit 3fe6c9427ba947d0c7c572f515b9fa7bb51b1117
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 23 11:00:41 2017 -0800

    pipeline: use G_ENABLE_DIAGNOSTIC by default
    
    This enables various deprecation warnings so that developers catch them
    when writing applications instead of at runtime.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790761

 src/libide/buildsystem/ide-build-pipeline.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/buildsystem/ide-build-pipeline.c b/src/libide/buildsystem/ide-build-pipeline.c
index 976c409..127468d 100644
--- a/src/libide/buildsystem/ide-build-pipeline.c
+++ b/src/libide/buildsystem/ide-build-pipeline.c
@@ -813,6 +813,9 @@ register_build_commands_stage (IdeBuildPipeline *self,
           return;
         }
 
+      /* Request deprecation warnings from the GLib stack by default */
+      ide_subprocess_launcher_setenv (launcher, "G_ENABLE_DIAGNOSTIC", "1", FALSE);
+
       ide_subprocess_launcher_push_argv (launcher, "/bin/sh");
       ide_subprocess_launcher_push_argv (launcher, "-c");
       ide_subprocess_launcher_push_argv (launcher, build_commands[i]);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]