mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 18:32:18 +08:00
I'm really not proud of how I did this though. It must be run from the same environment as one's editor (ie. not in the docker image) so that the paths are correct.
12 lines
204 B
Python
Executable File
12 lines
204 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import json
|
|
|
|
lst = []
|
|
for filename in sys.argv[1:]:
|
|
commands = json.load(open(filename))
|
|
lst.extend(commands)
|
|
|
|
json.dump(lst, open("compile_commands.json", "w"))
|