From 71c902eaf82ded8ea6ca902ff9026b0855762776 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 2 Jul 2022 10:06:04 +0530 Subject: [PATCH] Build the launcher with debug symbols when using --debug --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e4c2496fd..95060b1cc 100755 --- a/setup.py +++ b/setup.py @@ -836,7 +836,7 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's if args.profile: libs.append('-lprofiler') else: - cflags.append('-O3') + cflags.append('-g3' if args.debug else '-O3') if bundle_type.endswith('-freeze'): cppflags.append('-DFOR_BUNDLE') cppflags.append(f'-DPYVER="{sysconfig.get_python_version()}"')