Dont sort on mtime

Files are built in order by size anyway and mtime sort makes link order
mtime dependent which breaks reproducible builds on openSUSE as they
modify mtimes randomnly. See #1804
This commit is contained in:
Kovid Goyal 2019-07-16 20:10:14 +05:30
parent b6fb087d7e
commit c30c21b250
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -528,9 +528,6 @@ def find_c_files():
ans.append(os.path.join('kitty', x)) ans.append(os.path.join('kitty', x))
elif ext == '.h': elif ext == '.h':
headers.append(os.path.join('kitty', x)) headers.append(os.path.join('kitty', x))
ans.sort(
key=lambda x: os.path.getmtime(x), reverse=True
)
ans.append('kitty/parser_dump.c') ans.append('kitty/parser_dump.c')
return tuple(ans), tuple(headers) return tuple(ans), tuple(headers)