generate_compile_commands.py can now handle different make-output path delimiters
This commit is contained in:
@@ -21,8 +21,8 @@ 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:
|
||||||
prefix = 'Entering directory \''
|
prefix = 'Entering directory '
|
||||||
new_dir = line[line.find(prefix) + len(prefix):-1]
|
new_dir = line[line.find(prefix) + len(prefix)+1:-1]
|
||||||
print('new dir: {}'.format(new_dir))
|
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