Skip to content

Commit

Permalink
Fix compatiility header generation from ASUpdater.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Dec 6, 2024
1 parent ac6754f commit a81e770
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion suite/auto-sync/src/autosync/ASUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,17 @@ def patch_main_header(self) -> list:
# Save the path. This file should not be moved.
patched.append(file)
if self.arch == "AArch64":
# Update the compatibility header
builder = CompatHeaderBuilder(
v6=main_header,
v5=get_path("{CS_INCLUDE_DIR}").joinpath(f"arm64.h"),
arch="aarch64"
)
builder.generate_v5_compat_header()
elif self.arch == "AArch64":
builder = CompatHeaderBuilder(
v6=main_header,
v5=get_path("{CS_INCLUDE_DIR}").joinpath(f"systemz_compatibility.h"),
arch="systemz"
)
builder.generate_v5_compat_header()
return patched
Expand Down

0 comments on commit a81e770

Please sign in to comment.