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 = []
|
||||
|
||||
if len(line_parts) >= 2 and 'Entering directory' in line:
|
||||
prefix = 'Entering directory \''
|
||||
new_dir = line[line.find(prefix) + len(prefix):-1]
|
||||
prefix = 'Entering directory '
|
||||
new_dir = line[line.find(prefix) + len(prefix)+1:-1]
|
||||
print('new dir: {}'.format(new_dir))
|
||||
dir_stack.append(new_dir)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user