diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-01-12 12:32:44 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-01-12 12:32:44 +0100 |
commit | a6eab3e7326ad42d723241e62b6c007d15ab07a8 (patch) | |
tree | 35eba5c5e347941b228bb755d11b0c764dc36ec5 /builder | |
parent | 689c36aa8f34b3b775de804ce4eb78d6ccbdc87b (diff) | |
download | xdg-app-a6eab3e7326ad42d723241e62b6c007d15ab07a8.tar.gz |
builder: Don't break if ccache not enabled.
Diffstat (limited to 'builder')
-rw-r--r-- | builder/builder-module.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/builder/builder-module.c b/builder/builder-module.c index 68f1b50..c35c53b 100644 --- a/builder/builder-module.c +++ b/builder/builder-module.c @@ -555,8 +555,11 @@ build (GFile *app_dir, else g_ptr_array_add (args, g_strdup_printf ("--build-dir=/run/build/%s", module_name)); - ccache_dir_path = g_file_get_path (builder_context_get_ccache_dir (context)); - g_ptr_array_add (args, g_strdup_printf ("--bind-mount=/run/ccache=%s", ccache_dir_path)); + if (g_file_query_exists (builder_context_get_ccache_dir (context), NULL)) + { + ccache_dir_path = g_file_get_path (builder_context_get_ccache_dir (context)); + g_ptr_array_add (args, g_strdup_printf ("--bind-mount=/run/ccache=%s", ccache_dir_path)); + } if (xdg_app_opts) { |