From b63d35d9cf0d13e03ed4582908ce7b66b07dcf9e Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Thu, 26 Jan 2023 21:30:17 -0800 Subject: [PATCH] transform-dep.py: fake the -MP compiler option --- tools/transform-dep.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/transform-dep.py b/tools/transform-dep.py index 5c5f7e7b690..0e2d4d05318 100755 --- a/tools/transform-dep.py +++ b/tools/transform-dep.py @@ -50,6 +50,7 @@ def import_d_file(in_file: str) -> str: else: out_lines.append(line.replace('\\', '/')) + headers: List[str] = [] for line in it: suffix = '' if line.endswith(' \\\n'): @@ -59,7 +60,10 @@ def import_d_file(in_file: str) -> str: path = line.strip() path = convert_path(path) + headers.append(path) out_lines.append(f"\t{path}{suffix}\n") + # the metrowerks compiler doesn't support -MP + out_lines.extend([f'{header}:\n' for header in headers]) return ''.join(out_lines)