svn commit: r314821 - stable/11/lib/libclang_rt/profile

Ngie Cooper ngie at FreeBSD.org
Tue Mar 7 02:01:03 UTC 2017


Author: ngie
Date: Tue Mar  7 02:01:02 2017
New Revision: 314821
URL: https://svnweb.freebsd.org/changeset/base/314821

Log:
  MFC r313009:
  
  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

Modified:
  stable/11/lib/libclang_rt/profile/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libclang_rt/profile/Makefile
==============================================================================
--- stable/11/lib/libclang_rt/profile/Makefile	Tue Mar  7 01:58:56 2017	(r314820)
+++ stable/11/lib/libclang_rt/profile/Makefile	Tue Mar  7 02:01:02 2017	(r314821)
@@ -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-all mailing list