Skip to content
Snippets Groups Projects
Commit 6a6f8151 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[machdep] cleanup compilation artifacts in make_machdep script

parent 00c3a1a1
No related branches found
No related tags found
No related merge requests found
...@@ -245,6 +245,7 @@ for (f, typ) in source_files: ...@@ -245,6 +245,7 @@ for (f, typ) in source_files:
if args.verbose: if args.verbose:
print(f"[INFO] running command: {' '.join(cmd)}") print(f"[INFO] running command: {' '.join(cmd)}")
proc = subprocess.run(cmd, capture_output=True) proc = subprocess.run(cmd, capture_output=True)
Path(f).with_suffix(".o").unlink(missing_ok=True)
if typ == "has__builtin_va_list": if typ == "has__builtin_va_list":
# Special case: compilation success determines presence or absence # Special case: compilation success determines presence or absence
machdep["has__builtin_va_list"] = proc.returncode == 0 machdep["has__builtin_va_list"] = proc.returncode == 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment