[gnome-builder] compile-commands: translate paths for -include
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] compile-commands: translate paths for -include
- Date: Tue, 17 Oct 2017 09:07:52 +0000 (UTC)
commit 5d5f84b86ac734d95b20f65bedd3c35942556b6e
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 17 02:07:04 2017 -0700
compile-commands: translate paths for -include
We might have a relative path that needs to be translated when
-include is being used. Ensure we do that before adding to the
resulting argv.
src/libide/buildsystem/ide-compile-commands.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libide/buildsystem/ide-compile-commands.c b/src/libide/buildsystem/ide-compile-commands.c
index e9224d2..50cc07d 100644
--- a/src/libide/buildsystem/ide-compile-commands.c
+++ b/src/libide/buildsystem/ide-compile-commands.c
@@ -504,7 +504,7 @@ ide_compile_commands_filter_c (IdeCompileCommands *self,
else if (next != NULL && ide_str_equal0 (param, "-include"))
{
g_ptr_array_add (ar, g_strdup (param));
- g_ptr_array_add (ar, g_strdup (next));
+ g_ptr_array_add (ar, ide_compile_commands_resolve (self, info, next));
}
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]