Add source code when profiling

This commit is contained in:
Kamay Xutax 2024-08-30 18:22:57 +02:00
parent c40f94a355
commit 50b3b90901

View file

@ -490,6 +490,8 @@ def configure(conf):
] ]
if conf.options.PROFILING > 0: 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_LEVEL', conf.options.PROFILING)
conf.define('VPROF_ENABLED', 1) conf.define('VPROF_ENABLED', 1)