diff --git a/lldb/scripts/framework-header-fix.py b/lldb/scripts/framework-header-fix.py index 36c5c67c59d36..3447dfc29a761 100755 --- a/lldb/scripts/framework-header-fix.py +++ b/lldb/scripts/framework-header-fix.py @@ -115,8 +115,10 @@ def main(): unifdef_guards = ["-U" + guard for guard in args.unifdef_guards] # Create the framework's header dir if it doesn't already exist - if not os.path.exists(os.path.dirname(output_file_path)): + try: os.makedirs(os.path.dirname(output_file_path)) + except FileExistsError: + pass if framework_version == "lldb_main": modify_main_includes(input_file_path, output_file_path)