Commit 96aa3ce1 authored by Christian Hergert's avatar Christian Hergert
Browse files

meson: redirect stderr to null

parent a8577b60
......@@ -37,6 +37,7 @@ create_launcher (IdeContext *context,
{
IdePipeline *pipeline;
IdeBuildManager *build_manager;
IdeSubprocessLauncher *ret;
g_assert (IDE_IS_CONTEXT (context));
g_assert (error == NULL || *error == NULL);
......@@ -53,7 +54,13 @@ create_launcher (IdeContext *context,
return NULL;
}
return ide_pipeline_create_launcher (pipeline, error);
ret = ide_pipeline_create_launcher (pipeline, error);
if (ret != NULL)
ide_subprocess_launcher_set_flags (ret,
ide_subprocess_launcher_get_flags (ret) | G_SUBPROCESS_FLAGS_STDERR_SILENCE);
return g_steal_pointer (&ret);
}
static void
......
......@@ -208,7 +208,8 @@ gbp_meson_test_provider_do_reload (GbpMesonTestProvider *self,
if (NULL == (launcher = ide_pipeline_create_launcher (pipeline, &error)))
IDE_GOTO (failure);
ide_subprocess_launcher_set_flags (launcher, G_SUBPROCESS_FLAGS_STDOUT_PIPE);
ide_subprocess_launcher_set_flags (launcher,
G_SUBPROCESS_FLAGS_STDOUT_PIPE | G_SUBPROCESS_FLAGS_STDERR_SILENCE);
builddir = ide_pipeline_get_builddir (pipeline);
ide_subprocess_launcher_set_cwd (launcher, builddir);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment