Skip to content

Commit 9a90c71

Browse files
committed
lldb create API folder if it does not exist, before creating SBLanguages.h
1 parent 7e4d16d commit 9a90c71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/scripts/generate-sbapi-dwarf-enum.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import argparse
44
import re
5+
import os
56

67
HEADER = """\
78
//===-- SBLanguages.h -----------------------------------------*- C++ -*-===//
@@ -37,6 +38,9 @@ def emit_enum(input, output):
3738
with open(input, "r") as f:
3839
lines = f.readlines()
3940

41+
# Create output folder if it does not exist
42+
os.makedirs(os.path.dirname(output), exist_ok=True)
43+
4044
# Write the output.
4145
with open(output, "w") as f:
4246
# Emit the header.

0 commit comments

Comments
 (0)