Add source code when profiling
This commit is contained in:
parent
c40f94a355
commit
50b3b90901
1 changed files with 2 additions and 0 deletions
2
wscript
2
wscript
|
@ -490,6 +490,8 @@ def configure(conf):
|
|||
]
|
||||
|
||||
if conf.options.PROFILING > 0:
|
||||
if conf.env.COMPILER_CC != 'msvc':
|
||||
compiler_optional_flags += ['-finstrument-functions', '-g']
|
||||
conf.define('VPROF_LEVEL', conf.options.PROFILING)
|
||||
conf.define('VPROF_ENABLED', 1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue