避免 .lib .a 文件被误删除

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2021-10-30 11:29:38 +08:00
parent dc09f8fd99
commit 0209016824

View File

@@ -187,6 +187,9 @@ class SharelibHandler:
if d in reserved_subdir:
continue
if d.endswith('.a') or d.endswith('.lib'):
continue
pth = os.path.join(dist_path, d)
if os.path.isfile(pth):
os.remove(pth)