Set a flag available at runtime when cross compiling kitty-tool

This commit is contained in:
Kovid Goyal 2022-11-15 15:04:28 +05:30
parent 5a71b8c209
commit 8d12e60f62
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 0 deletions

View file

@ -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')