[gnome-builder/gnome-builder-3-28] autotools: strip path directory from target name
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] autotools: strip path directory from target name
- Date: Thu, 5 Apr 2018 19:39:21 +0000 (UTC)
commit ca68fe47a22fbab3e4d1df9067c2d25f7dfec91a
Author: Christian Hergert <chergert redhat com>
Date: Thu Apr 5 12:26:46 2018 -0700
autotools: strip path directory from target name
We already resolve bindir, so we don't need any prefix added by the local
directory path in-tree.
src/plugins/autotools/ide-makecache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/autotools/ide-makecache.c b/src/plugins/autotools/ide-makecache.c
index 3c19c0b01..c7108032c 100644
--- a/src/plugins/autotools/ide-makecache.c
+++ b/src/plugins/autotools/ide-makecache.c
@@ -1667,7 +1667,7 @@ ide_makecache_get_build_targets_worker (GTask *task,
{
g_autoptr(IdeBuildTarget) target = NULL;
g_autoptr(GFile) installdir = NULL;
- const gchar *name = names [i];
+ g_autofree gchar *name = g_path_get_basename (names[i]);
installdir = find_install_dir (key, amdirs);
if (installdir == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]