Also clean *_generated.bin files

This commit is contained in:
Kovid Goyal 2023-02-22 11:03:29 +05:30
parent 5ce85292b7
commit e41897f93f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1513,7 +1513,7 @@ def clean() -> None:
dirs.remove(d)
for f in files:
ext = f.rpartition('.')[-1]
if ext in ('so', 'dylib', 'pyc', 'pyo') or f.endswith('_generated.h') or f.endswith('_generated.go'):
if ext in ('so', 'dylib', 'pyc', 'pyo') or f.endswith('_generated.h') or f.endswith('_generated.go') or f.endswith('_generated.bin'):
os.unlink(os.path.join(root, f))
for x in glob.glob('glfw/wayland-*-protocol.[ch]'):
os.unlink(x)