diff --git a/suite/auto-sync/src/autosync/HeaderPatcher.py b/suite/auto-sync/src/autosync/HeaderPatcher.py index 19af6e6985..8b271eff67 100755 --- a/suite/auto-sync/src/autosync/HeaderPatcher.py +++ b/suite/auto-sync/src/autosync/HeaderPatcher.py @@ -173,7 +173,7 @@ def replace_typedef_enum(self, aarch64_lines: list[str]) -> list[str]: def remove_comments(self, aarch64_lines: list[str]) -> list[str]: output = list() for line in aarch64_lines: - if re.search(r"^\s*//", line): + if re.search(r"^\s*//", line) and "// SPDX" not in line: continue output.append(line) return output