Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2017 02:01:02 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r314821 - stable/11/lib/libclang_rt/profile
Message-ID:  <201703070201.v27212uk083987@repo.freebsd.org>

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



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