This commit is contained in:
Kovid Goyal 2023-01-26 20:49:13 +05:30
parent bf6db247a2
commit 58c9ca9519
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -300,6 +300,7 @@ class Build(Command):
help='Build with sanitization support. Run with LD_PRELOAD=$(gcc -print-file-name=libasan.so)')
def dump_db(self, name, db):
os.makedirs('build', exist_ok=True)
try:
with open(f'build/{name}_commands.json', 'w') as f:
json.dump(db, f, indent=2)