Clean _generated.h files

This commit is contained in:
Kovid Goyal 2022-08-19 11:22:30 +05:30
parent 5deed81737
commit 012731c3be
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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