Use -g3 for profiling rather than -g
This commit is contained in:
parent
1712a317d5
commit
0153c9bb85
1 changed files with 1 additions and 3 deletions
4
setup.py
4
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue