mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Compile in mtime order
This commit is contained in:
7
setup.py
7
setup.py
@@ -112,11 +112,14 @@ def option_parser():
|
|||||||
|
|
||||||
|
|
||||||
def find_c_files():
|
def find_c_files():
|
||||||
|
ans = []
|
||||||
d = os.path.join(base, 'kitty')
|
d = os.path.join(base, 'kitty')
|
||||||
for x in os.listdir(d):
|
for x in os.listdir(d):
|
||||||
if x.endswith('.c'):
|
if x.endswith('.c'):
|
||||||
yield os.path.join('kitty', x)
|
ans.append(os.path.join('kitty', x))
|
||||||
yield 'kitty/parser_dump.c'
|
ans.sort(key=lambda x: os.path.getmtime(os.path.join(base, x)), reverse=True)
|
||||||
|
ans.append('kitty/parser_dump.c')
|
||||||
|
return tuple(ans)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user