Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions refresh.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,9 @@ def main():
There should be actionable warnings, above, that led to this.""")
sys.exit(1)

# Sort output by filenaem to make output deterministic.
compile_command_entries.sort(lambda entry: entry['file'])

# Chain output into compile_commands.json
with open('compile_commands.json', 'w') as output_file:
json.dump(
Expand Down