[gnome-builder] buildsystem: use short-id and arch in builddir



commit 149b873a1bcd6a7a115e79f889f45aaa3be6b2e8
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 3 16:03:45 2021 -0700

    buildsystem: use short-id and arch in builddir
    
    Fixes #1487

 src/libide/foundry/ide-build-system.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/foundry/ide-build-system.c b/src/libide/foundry/ide-build-system.c
index 709703499..24814ceb4 100644
--- a/src/libide/foundry/ide-build-system.c
+++ b/src/libide/foundry/ide-build-system.c
@@ -558,6 +558,7 @@ ide_build_system_get_builddir (IdeBuildSystem   *self,
       IdeConfig *config;
       const gchar *config_id;
       const gchar *runtime_id;
+      const gchar *arch;
       IdeRuntime *runtime;
       IdeContext *context;
       IdeVcs *vcs;
@@ -567,13 +568,14 @@ ide_build_system_get_builddir (IdeBuildSystem   *self,
       config = ide_pipeline_get_config (pipeline);
       config_id = ide_config_get_id (config);
       runtime = ide_pipeline_get_runtime (pipeline);
-      runtime_id = ide_runtime_get_id (runtime);
+      runtime_id = ide_runtime_get_short_id (runtime);
       branch = ide_vcs_get_branch_name (vcs);
+      arch = ide_pipeline_get_arch (pipeline);
 
       if (branch != NULL)
-        name = g_strdup_printf ("%s-%s-%s", config_id, runtime_id, branch);
+        name = g_strdup_printf ("%s-%s-%s-%s", config_id, runtime_id, arch, branch);
       else
-        name = g_strdup_printf ("%s-%s", config_id, runtime_id);
+        name = g_strdup_printf ("%s-%s-%s", config_id, runtime_id, arch);
 
       g_strdelimit (name, "@:/ ", '-');
 


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