Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2017 07:13:01 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313009 - head/lib/libclang_rt/profile
Message-ID:  <201701310713.v0V7D14H017926@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701310713.v0V7D14H017926>