Skip to content

Commit e254209

Browse files
committed
Make windows output more compact
1 parent a70d591 commit e254209

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,17 @@
101101
if os.path.exists(target_dir):
102102
shutil.rmtree(target_dir)
103103
shutil.copytree(format_path, target_dir)
104+
105+
for pdb_file in build_dir.rglob("*.pdb"):
106+
try:
107+
pdb_file.unlink()
108+
print(f"Removed: {pdb_file}")
109+
except Exception as e:
110+
print(f"Failed to remove {pdb_file}: {e}")
111+
112+
for pdb_file in build_dir.rglob("plugdata.*"): # weird plugdata build trash on Windows for some reason
113+
try:
114+
pdb_file.unlink()
115+
print(f"Removed: {pdb_file}")
116+
except Exception as e:
117+
print(f"Failed to remove {pdb_file}: {e}")

0 commit comments

Comments
 (0)