Start work on everywhere prewarm

This commit is contained in:
Kovid Goyal
2022-06-07 20:37:55 +05:30
parent 132f87d152
commit 7a31c7ff50
3 changed files with 62 additions and 9 deletions

View File

@@ -870,7 +870,7 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's
src, '-o', dest] + ldflags + libs + pylib
key = CompileKey('launcher.c', 'kitty')
desc = f'Building {emphasis("launcher")} ...'
args.compilation_database.add_command(desc, cmd, partial(newer, dest, src), key=key, keyfile=src)
args.compilation_database.add_command(desc, cmd, partial(newer, dest, src, "prewarm-launcher.h"), key=key, keyfile=src)
args.compilation_database.build_all()