[gnome-builder] autotools: use build parallelism from build configuration



commit 2a8560c0712477743fa8f9c132b2353c31478d8a
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 4 15:40:49 2016 +0300

    autotools: use build parallelism from build configuration
    
    If the build configuration specifies our parallelism, we should use that
    rather than the PARALLEL environment variable.

 plugins/autotools/ide-autotools-build-task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools/ide-autotools-build-task.c b/plugins/autotools/ide-autotools-build-task.c
index 2e6a778..710aad2 100644
--- a/plugins/autotools/ide-autotools-build-task.c
+++ b/plugins/autotools/ide-autotools-build-task.c
@@ -430,7 +430,7 @@ worker_state_new (IdeAutotoolsBuildTask *self,
   state->system_type = g_strdup (ide_device_get_system_type (device));
   state->runtime = g_object_ref (runtime);
 
-  val32 = atoi (ide_configuration_getenv (self->configuration, "PARALLEL") ?: "-1");
+  val32 = ide_configuration_get_parallelism (self->configuration);
 
   if (val32 == -1)
     state->parallel = g_strdup_printf ("-j%u", g_get_num_processors () + 1);


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