1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

Expose symbols in lib/libclang_rt/profile to fix --coverage

The symbols currently hidden in libprofile_rt are needed for linking with
`clang --coverage` to add coverage counters at link time and produce
coverage numbers at runtime.

In collaboration with:	dim
MFC after:	1 month
Sponsored by:	Dell EMC Isilon
Differential Revision:	D9168
This commit is contained in:
Enji Cooper 2017-01-31 07:13:01 +00:00
parent 15b69ab272
commit 8641eed228
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313009

View File

@ -4,6 +4,9 @@
LIB= clang_rt.profile-${CRTARCH}
# This is needed for --coverage
CFLAGS+= -fvisibility=default
SRCS+= profile/GCDAProfiling.c
SRCS+= profile/InstrProfiling.c
SRCS+= profile/InstrProfilingBuffer.c