Make --debug-gl have zero runtime cost when absent

This commit is contained in:
Kovid Goyal
2017-09-11 22:57:26 +05:30
parent 44f456089b
commit 9eea178890
5 changed files with 26 additions and 18 deletions

View File

@@ -194,6 +194,7 @@ def run_tool(cmd):
SPECIAL_SOURCES = {
'kitty/parser_dump.c': ('kitty/parser.c', ['DUMP_COMMANDS']),
'kitty/shaders_debug.c': ('kitty/shaders.c', ['ENABLE_DEBUG_GL']),
}
@@ -287,6 +288,7 @@ def find_c_files():
key=lambda x: os.path.getmtime(os.path.join(base, x)), reverse=True
)
ans.append('kitty/parser_dump.c')
ans.append('kitty/shaders_debug.c')
return tuple(ans), tuple(headers)