summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-03-07 02:01:02 +0000
committerngie <ngie@FreeBSD.org>2017-03-07 02:01:02 +0000
commit1d62af743f25edd20e6851f30758f17b929f12b5 (patch)
treef587bf0cf95060d2c5d321b1c4629e8d7fa1647f /lib
parent507d3f6d6e941953cdee598b4647db57bed98519 (diff)
downloadFreeBSD-src-1d62af743f25edd20e6851f30758f17b929f12b5.zip
FreeBSD-src-1d62af743f25edd20e6851f30758f17b929f12b5.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/libclang_rt/profile/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libclang_rt/profile/Makefile b/lib/libclang_rt/profile/Makefile
index e9110cf..74e79ce 100644
--- a/lib/libclang_rt/profile/Makefile
+++ b/lib/libclang_rt/profile/Makefile
@@ -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
OpenPOWER on IntegriCloud