svn commit: r324903 - projects/runtime-coverage

Ngie Cooper ngie at FreeBSD.org
Mon Oct 23 06:21:36 UTC 2017


Author: ngie
Date: Mon Oct 23 06:21:35 2017
New Revision: 324903
URL: https://svnweb.freebsd.org/changeset/base/324903

Log:
  Trying to get libgcov to work was a stupid, stupid rabbit hole to go down
  
  Just use clang and ports gcc. I will fix the cross-toolchain stuff to actually
  work with MK_COVERAGE -- for now the host-only compilers work just fine.

Modified:
  projects/runtime-coverage/Makefile.inc1

Modified: projects/runtime-coverage/Makefile.inc1
==============================================================================
--- projects/runtime-coverage/Makefile.inc1	Mon Oct 23 05:36:39 2017	(r324902)
+++ projects/runtime-coverage/Makefile.inc1	Mon Oct 23 06:21:35 2017	(r324903)
@@ -2258,11 +2258,11 @@ _prereq_libs+= gnu/lib/libssp/libssp_nonshared
 # for world to have runtime coverage instrumentation.
 #
 .if ${MK_COVERAGE} != "no"
-# XXX (ngie): make this conditional sometime later
-.if ${COMPILER_FEATURES:Mc++11}
+.if ${COMPILER_TYPE} == clang
 _prereq_libs+=	lib/libclang_rt/profile
+.else
+.error "Runtime coverage isn't supported with ${COMPILER_TYPE}"
 .endif
-_prereq_libs+=	gnu/lib/libgcov
 .endif
 
 # These dependencies are not automatically generated:


More information about the svn-src-projects mailing list