mirror of
https://github.com/reactos/ninja.git
synced 2024-11-27 13:40:30 +00:00
fix --profile=pprof on newer ubuntus
The --as-needed default for ld would drop -lprofiler.
This commit is contained in:
parent
7bf53c6974
commit
c5114830b8
@ -166,7 +166,8 @@ else:
|
||||
cflags.append('-pg')
|
||||
ldflags.append('-pg')
|
||||
elif options.profile == 'pprof':
|
||||
libs.append('-lprofiler')
|
||||
cflags.append('-fno-omit-frame-pointer')
|
||||
libs.extend(['-Wl,--no-as-needed', '-lprofiler'])
|
||||
|
||||
def shell_escape(str):
|
||||
"""Escape str such that it's interpreted as a single argument by
|
||||
|
Loading…
Reference in New Issue
Block a user