Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2017 17:05:36 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r324930 - projects/runtime-coverage
Message-ID:  <201710231705.v9NH5aE4057293@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Oct 23 17:05:35 2017
New Revision: 324930
URL: https://svnweb.freebsd.org/changeset/base/324930

Log:
  More trying to quash the stupidity of gcc 4.2.1

Modified:
  projects/runtime-coverage/Makefile.inc1

Modified: projects/runtime-coverage/Makefile.inc1
==============================================================================
--- projects/runtime-coverage/Makefile.inc1	Mon Oct 23 16:55:22 2017	(r324929)
+++ projects/runtime-coverage/Makefile.inc1	Mon Oct 23 17:05:35 2017	(r324930)
@@ -2259,9 +2259,16 @@ _prereq_libs+= gnu/lib/libssp/libssp_nonshared
 #
 .if ${MK_COVERAGE} != "no"
 .if ${X_COMPILER_FEATURES:Mc++11}
-_prereq_libs+=	lib/libclang_rt/profile
+_coverage_libs+=	lib/libclang_rt/profile
 .else
-.error "Runtime coverage is only supported with c++11 capable compilers"
+.endif
+.if empty(${_coverage_libs})
+# XXX(ngie): force MK_COVERAGE off since the compiler we're working with (at
+# whatever stage we're at) obviously doesn't support --coverage support per
+# src.opts.mk's minimum requirements.
+MK_COVERAGE:=	no
+.else
+_prereq_libs+=	${_coverage_libs}
 .endif
 .endif
 



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