Add a COVERAGE=1 argument to the Linux scons build. This compiles the object files with support for gcov.
git-svn-id: http://src.chromium.org/svn/trunk/src/build@983 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
606a00436e
Коммит
b96060ff32
|
@ -338,6 +338,10 @@ elif env['PLATFORM'] == 'posix':
|
|||
# We need pthread for threading, and rt for clock_gettime.
|
||||
LIBS = ['pthread', 'rt'],
|
||||
)
|
||||
# Build with support for gcov when COVERAGE=1.
|
||||
if ARGUMENTS.get('COVERAGE') == '1':
|
||||
env.Append(CCFLAGS=['-fprofile-arcs', '-ftest-coverage'])
|
||||
env.Append(LINKFLAGS=['-fprofile-arcs'])
|
||||
|
||||
else:
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче