[gnome-builder/wip/chergert/pipeline-merge] autotools: Pass --host to configure
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/pipeline-merge] autotools: Pass --host to configure
- Date: Thu, 9 Feb 2017 01:21:09 +0000 (UTC)
commit d4a8b62331f37652ca70f6ded03b48815084e799
Author: Matthew Leeds <mleeds redhat com>
Date: Wed Feb 8 17:12:35 2017 -0600
autotools: Pass --host to configure
This was lost during the pipeline transition. Without it, configure
complains.
plugins/autotools/ide-autotools-pipeline-addin.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools/ide-autotools-pipeline-addin.c
b/plugins/autotools/ide-autotools-pipeline-addin.c
index 3f2ac38..01159b6 100644
--- a/plugins/autotools/ide-autotools-pipeline-addin.c
+++ b/plugins/autotools/ide-autotools-pipeline-addin.c
@@ -162,7 +162,10 @@ register_configure_stage (IdeAutotoolsPipelineAddin *self,
g_autoptr(IdeSubprocessLauncher) launcher = NULL;
g_autoptr(IdeBuildStage) stage = NULL;
IdeConfiguration *configuration;
+ IdeDevice *device;
g_autofree gchar *configure_path = NULL;
+ g_autofree gchar *host_arg = NULL;
+ const gchar *system_type;
const gchar *config_opts;
const gchar *prefix;
guint stage_id;
@@ -178,12 +181,18 @@ register_configure_stage (IdeAutotoolsPipelineAddin *self,
configure_path = ide_build_pipeline_build_srcdir_path (pipeline, "configure", NULL);
ide_subprocess_launcher_push_argv (launcher, configure_path);
+ /* --host=triplet */
+ configuration = ide_build_pipeline_get_configuration (pipeline);
+ device = ide_configuration_get_device (configuration);
+ system_type = ide_device_get_system_type (device);
+ host_arg = g_strdup_printf ("--host=%s", system_type);
+ ide_subprocess_launcher_push_argv (launcher, host_arg);
+
/*
* Parse the configure options as defined in the build configuration and append
* them to configure.
*/
- configuration = ide_build_pipeline_get_configuration (pipeline);
config_opts = ide_configuration_get_config_opts (configuration);
prefix = ide_configuration_get_prefix (configuration);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]