From 363b20bdd2e2b59c6f697be68cffa372a4835a92 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 Apr 2021 13:29:50 +0530 Subject: [PATCH] Add debug symbols when not stripping --- bypy/init_env.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bypy/init_env.py b/bypy/init_env.py index ebc8883b0..fd8517acc 100644 --- a/bypy/init_env.py +++ b/bypy/init_env.py @@ -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']