[gnome-builder/wip/chergert/pipeline-merge] pipeline: clear env of build subprocesses
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/pipeline-merge] pipeline: clear env of build subprocesses
- Date: Thu, 9 Feb 2017 23:35:46 +0000 (UTC)
commit 823304327d82bac00326dd62ca9cf80c59e71f47
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]