Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:19 -0000
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r345973 - projects/runtime-coverage-v2/share/mk
Message-ID:  <201904060149.x361nb4b094082@repo.freebsd.org>

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





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