svn commit: r345973 - projects/runtime-coverage-v2/share/mk

Enji Cooper ngie at FreeBSD.org
Sat Apr 6 01:49:38 UTC 2019


Author: ngie
Date: Sat Apr  6 01:49:37 2019
New Revision: 345973
URL: https://svnweb.freebsd.org/changeset/base/345973

Log:
  Force MK_COVERAGE off if not building with a C++11 capable compiler
  
  This will unbreak the build with powerpc*, etc.

Modified:
  projects/runtime-coverage-v2/share/mk/src.opts.mk

Modified: projects/runtime-coverage-v2/share/mk/src.opts.mk
==============================================================================
--- projects/runtime-coverage-v2/share/mk/src.opts.mk	Fri Apr  5 23:34:46 2019	(r345972)
+++ projects/runtime-coverage-v2/share/mk/src.opts.mk	Sat Apr  6 01:49:37 2019	(r345973)
@@ -295,12 +295,6 @@ __DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF
 # This means that architectures that have GCC 4.2 as default can not
 # build Clang without using an external compiler.
 
-# Note about MK_COVERAGE:
-#
-# clang and gcc 4.8+ (c++11 supporting compilers) support -fprofile-dir and
-# can compile lib/libclang_rt/profile . libgcov, etc, in base is a dead end
-# that I do not wish to support.
-
 .if ${COMPILER_FEATURES:Mc++11} && (${__T} == "aarch64" || \
     ${__T} == "amd64" || ${__TT} == "arm" || ${__T} == "i386")
 # Clang is enabled, and will be installed as the default /usr/bin/cc.
@@ -574,6 +568,12 @@ MK_${vv:H}:=	${MK_${vv:T}}
 #
 
 .if !${COMPILER_FEATURES:Mc++11}
+# Note about MK_COVERAGE:
+#
+# clang and gcc 4.8+ (c++11 supporting compilers) support -fprofile-dir and
+# can compile lib/libclang_rt/profile . libgcov, etc, in base would require
+# backports from GPLv3 versions of the gcc toolchain in order to function.
+MK_COVERAGE:=	no
 MK_LLDB:=	no
 .endif
 


More information about the svn-src-projects mailing list