This commit is contained in:
Kovid Goyal 2019-07-16 07:22:31 +05:30
parent 81506640c8
commit 97c2b7c1fe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -574,7 +574,7 @@ def compile_kittens(compilation_database):
kenv = kittens_env()
def list_files(q):
return glob.glob(q)
return sorted(glob.glob(q))
def files(kitten, output, extra_headers=(), extra_sources=(), filter_sources=None):
sources = list(filter(filter_sources, list(extra_sources) + list_files(os.path.join('kittens', kitten, '*.c'))))