Skip to content

Commit

Permalink
Skip generated .debug files from extracting/stripping again
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre committed Feb 13, 2025
1 parent c007fa7 commit ebe3ced
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/strip_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ def generate_version(part_src_dir = None) -> str:
debugpath = os.path.join(debugroot, buildid[:2])
debugname = os.path.join(debugpath, f"{buildid[2:]}.debug")

if os.path.exists(debugname):
print(f"Debug symbols file {debugname} already exists, skipping.")
continue

print(f"Extracting symbols from {fullpath} into {debugname}")
try:
os.makedirs(debugpath)
Expand Down

0 comments on commit ebe3ced

Please sign in to comment.