mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 13:34:48 +02:00
Set a flag available at runtime when cross compiling kitty-tool
This commit is contained in:
2
setup.py
2
setup.py
@@ -900,6 +900,8 @@ def build_kitty_tool(
|
||||
ld_flags = [f"-X 'kitty.VCSRevision={get_vcs_rev_define()}'"]
|
||||
if for_freeze:
|
||||
ld_flags.append("-X 'kitty.IsFrozenBuild=true'")
|
||||
if for_platform:
|
||||
ld_flags.append("-X 'kitty.IsStandaloneBuild=true'")
|
||||
if not args.debug:
|
||||
ld_flags.append('-s')
|
||||
ld_flags.append('-w')
|
||||
|
||||
Reference in New Issue
Block a user