Skip to content

Commit

Permalink
Use -g3 for profiling rather than -g
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Mar 14, 2024
1 parent 1712a31 commit 0153c9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0153c9b

Please sign in to comment.