From 691db9a718fd2f5b8ae131d6469fb00c2d8fccef Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Sun, 16 Jan 2022 06:06:15 +0000 Subject: [PATCH] meson: force ctags to use absolute paths Looks like https://github.com/mesonbuild/meson/issues/957 was reintroduced in meson-0.57.0 (and looking and https://mesonbuild.com/Release-notes-for-0-57-0.html I'm not sure whether it was intentional or not) so run_command can no longer be used to get around https://github.com/mesonbuild/meson/issues/3589. Let's just force ctags to always use absolute paths to fix it once and for all. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 312439015f..5e0bd2c431 100644 --- a/meson.build +++ b/meson.build @@ -3876,7 +3876,7 @@ if git.found() command : [env, 'etags', '-o', '@0@/TAGS'.format(project_source_root)] + all_files) run_target( 'ctags', - command : [env, 'ctags', '-o', '@0@/tags'.format(project_source_root)] + all_files) + command : [env, 'ctags', '--tag-relative=never', '-o', '@0@/tags'.format(project_source_root)] + all_files) endif endif