freebsd-dev/lib/libclang_rt/profile/Makefile
Enji Cooper 8641eed228 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
2017-01-31 07:13:01 +00:00

25 lines
673 B
Makefile

# $FreeBSD$
.include <bsd.init.mk>
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
SRCS+= profile/InstrProfilingFile.c
SRCS+= profile/InstrProfilingMerge.c
SRCS+= profile/InstrProfilingMergeFile.c
SRCS+= profile/InstrProfilingPlatformDarwin.c
SRCS+= profile/InstrProfilingPlatformLinux.c
SRCS+= profile/InstrProfilingPlatformOther.c
SRCS+= profile/InstrProfilingRuntime.cc
SRCS+= profile/InstrProfilingUtil.c
SRCS+= profile/InstrProfilingValue.c
SRCS+= profile/InstrProfilingWriter.c
.include <bsd.lib.mk>