[gnome-builder] flatpak: set CCACHE_DIR environment variable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: set CCACHE_DIR environment variable
- Date: Thu, 16 Mar 2017 20:07:10 +0000 (UTC)
commit 48f83b2200f0acab0667f5a97bfd340732802beb
Author: Christian Hergert <chergert redhat com>
Date: Thu Mar 16 13:06:08 2017 -0700
flatpak: set CCACHE_DIR environment variable
When doing incremental builds, we want to use the same ccache dir that
flatpak-builder will be using.
plugins/flatpak/gbp-flatpak-runtime.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index 3dd4461..d0a503c 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -173,6 +173,12 @@ gbp_flatpak_runtime_create_launcher (IdeRuntime *runtime,
ide_subprocess_launcher_push_argv (ret, "flatpak");
ide_subprocess_launcher_push_argv (ret, "build");
ide_subprocess_launcher_push_argv (ret, "--share=network");
+
+ /* We might need access to ccache configs inside the build environ.
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=780153
+ */
+ ide_subprocess_launcher_push_argv (ret, "--filesystem=~/.ccache");
+
if (!ide_str_empty0 (project_path))
{
g_autofree gchar *filesystem_option_src = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]