From 0153c9bb85660333cb488c8c02c3aabfbad9d5d6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Mar 2024 17:07:38 +0530 Subject: [PATCH] Use -g3 for profiling rather than -g --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 6d35b96cd..a75b7ed9b 100755 --- a/setup.py +++ b/setup.py @@ -1168,14 +1168,12 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's libs: List[str] = [] ldflags = shlex.split(os.environ.get('LDFLAGS', '')) if args.profile or args.sanitize: + cflags.append('-g3') if args.sanitize: - cflags.append('-g3') sanitize_args = get_sanitize_args(env.cc, env.ccver) cflags.extend(sanitize_args) ldflags.extend(sanitize_args) libs += ['-lasan'] if not is_macos and env.compiler_type is not CompilerType.clang else [] - else: - cflags.append('-g') if args.profile: libs.append('-lprofiler') else: