[gnome-builder/wip/chergert/pipeline-merge: 78/78] pipeline: clear env of build subprocesses



commit 44ebfd3fd56eab574acda46231c4d0005ee14562
Author: Matthew Leeds <mleeds redhat com>
Date:   Thu Feb 9 17:30:11 2017 -0600

    pipeline: clear env of build subprocesses
    
    Allowing the build processes to inherit environment variables from the
    Builder process can result in undesired behavior. For example if Builder
    was run via "make run" LSAN_OPTIONS will be set, which causes an error
    if the project is compiled with -fsanitize=address in CFLAGS.

 libide/buildsystem/ide-build-pipeline.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-pipeline.c b/libide/buildsystem/ide-build-pipeline.c
index cdcbbe5..3ae2791 100644
--- a/libide/buildsystem/ide-build-pipeline.c
+++ b/libide/buildsystem/ide-build-pipeline.c
@@ -1858,6 +1858,7 @@ ide_build_pipeline_create_launcher (IdeBuildPipeline  *self,
 
   if (ret != NULL)
     {
+      ide_subprocess_launcher_set_clear_env (ret, TRUE);
       ide_subprocess_launcher_set_cwd (ret, ide_build_pipeline_get_builddir (self));
       ide_subprocess_launcher_set_flags (ret,
                                          (G_SUBPROCESS_FLAGS_STDERR_PIPE |


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