From 7ed4621ae0c874f7f1e50a0a8f655cdbe5a8f019 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 27 Jul 2026 23:49:03 +0530 Subject: [PATCH] Dont emit empty specialisation commands --- kitty/shaders/slang.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kitty/shaders/slang.py b/kitty/shaders/slang.py index 49ad0aadc..47f58fb54 100644 --- a/kitty/shaders/slang.py +++ b/kitty/shaders/slang.py @@ -788,6 +788,8 @@ def create_specialisations(sources: dict[str, SlangFile], build_dir: str) -> Ite for _, base_build, _, _, sfile in iter_entry_point_shaders(sources, build_dir, build_dir): if sfile.entry_points and sfile.specializations: for sp in sfile.specializations: + if not sp.variables: + continue dest = f'{base_build}{sp.filename_insert}.slang' payload = existing = '' if sp.variables: @@ -846,6 +848,7 @@ def main() -> None: emphasis = setup['emphasis'] def prun(cmds: Iterable[tuple[bool, str, list[str]]]) -> None: + cmds = tuple(cmds) needed = [] for needs_build, desc, cmd in cmds: if needs_build: