Add debug symbols when not stripping

This commit is contained in:
Kovid Goyal 2021-04-19 13:29:50 +05:30
parent b16317e2ca
commit 363b20bdd2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -90,6 +90,8 @@ def build_c_extensions(ext_dir, args):
os.unlink(os.path.join(writeable_src_dir, 'kitty', 'launcher', 'kitty'))
cmd = [PYTHON, 'setup.py', 'macos-freeze' if ismacos else 'linux-freeze']
if args.dont_strip:
cmd.append('--debug')
dest = kitty_constants['appname'] + ('.app' if ismacos else '')
dest = build_frozen_launcher.prefix = os.path.join(ext_dir, dest)
cmd += ['--prefix', dest, '--full']