Fixed directory change parsing in generate_compile_commands.py
This commit is contained in:
@@ -21,7 +21,9 @@ for line in make_output_lines:
|
|||||||
new_line_parts = []
|
new_line_parts = []
|
||||||
|
|
||||||
if len(line_parts) >= 2 and 'Entering directory' in line:
|
if len(line_parts) >= 2 and 'Entering directory' in line:
|
||||||
new_dir = line[line.find('`') + 1:-1]
|
prefix = 'Entering directory \''
|
||||||
|
new_dir = line[line.find(prefix) + len(prefix):-1]
|
||||||
|
print('new dir: {}'.format(new_dir))
|
||||||
dir_stack.append(new_dir)
|
dir_stack.append(new_dir)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user