summaryrefslogtreecommitdiff
path: root/lldb/scripts
diff options
context:
space:
mode:
authorChelsea Cassanova <chelsea_cassanova@apple.com>2025-07-03 15:09:15 -0700
committerGitHub <noreply@github.com>2025-07-03 15:09:15 -0700
commit45083dc4d2248b2e3f331af745459f2011db4b7f (patch)
tree5efa9880c32acc866bf193c338a0da60261a99fa /lldb/scripts
parent1f7effc88774eee0c957f0aa6c5092b5dae93069 (diff)
[lldb][framework] Correctly place framework files in framework with script (#146425)
There's 2 bugs that this commit fixes: 1. Calculate the correct file path for the output file by appending the basename of the input header instead of appending the entire input header's path to the framework path. 2. In the script, create the framework's header directory if it does not exist.
Diffstat (limited to 'lldb/scripts')
-rwxr-xr-xlldb/scripts/framework-header-fix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/scripts/framework-header-fix.py b/lldb/scripts/framework-header-fix.py
index d8c38511f19a..6ea8df4c24dd 100755
--- a/lldb/scripts/framework-header-fix.py
+++ b/lldb/scripts/framework-header-fix.py
@@ -113,6 +113,10 @@ def main():
# arguments in and of themself, so they need to passed in without dashes.
unifdef_guards = ["-" + 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)):
+ os.makedirs(os.path.dirname(output_file_path))
+
if framework_version == "lldb_main":
modify_main_includes(input_file_path, output_file_path)
if framework_version == "lldb_rpc":