svn commit: r313009 - head/lib/libclang_rt/profile
Ngie Cooper
ngie at FreeBSD.org
Tue Jan 31 07:13:03 UTC 2017
Author: ngie
Date: Tue Jan 31 07:13:01 2017
New Revision: 313009
URL: https://svnweb.freebsd.org/changeset/base/313009
Log:
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
Modified:
head/lib/libclang_rt/profile/Makefile
Modified: head/lib/libclang_rt/profile/Makefile
==============================================================================
--- head/lib/libclang_rt/profile/Makefile Tue Jan 31 06:12:51 2017 (r313008)
+++ head/lib/libclang_rt/profile/Makefile Tue Jan 31 07:13:01 2017 (r313009)
@@ -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
More information about the svn-src-head
mailing list