mirror of https://gitlab.com/ita1024/waf.git
Fix relative path comparisons in clang_compilation_database
This commit is contained in:
parent
eaa1e372af
commit
5b82ba4fa4
|
@ -63,9 +63,8 @@ class ClangDbContext(Build.BuildContext):
|
||||||
cmd = task.last_cmd
|
cmd = task.last_cmd
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
continue
|
continue
|
||||||
directory = getattr(task, 'cwd', self.variant_dir)
|
|
||||||
f_node = task.inputs[0]
|
f_node = task.inputs[0]
|
||||||
filename = os.path.relpath(f_node.abspath(), directory)
|
filename = f_node.path_from(task.getcwd())
|
||||||
entry = {
|
entry = {
|
||||||
"directory": directory,
|
"directory": directory,
|
||||||
"arguments": cmd,
|
"arguments": cmd,
|
||||||
|
|
Loading…
Reference in New Issue