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

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Apr  7 17:22:31 2019
New Revision: 346014
URL: https://svnweb.freebsd.org/changeset/base/346014

Log:
  Disable MK_COVERAGE* when cross-building
  
  Unfortunately, make tinderbox is building a copy of libclang_rt.profile*.a for
  the machine architecture, not the target architecture, while looking for the
  library under the cross-toolchain directory, with the current set of proposed
  changes. As such, disable MK_COVERAGE and MK_COVERAGE_SUPPORT until I work out
  why the library isn't being built and installed as expected.
  
  Add a comment to note the issue.

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	Sun Apr  7 16:33:22 2019	(r346013)
+++ projects/runtime-coverage-v2/share/mk/src.opts.mk	Sun Apr  7 17:22:31 2019	(r346014)
@@ -405,6 +405,15 @@ __DEFAULT_YES_OPTIONS+=OPENMP
 __DEFAULT_NO_OPTIONS+=OPENMP
 .endif
 
+# cross toolchains with "make universe" aren't properly building
+# libclang_rt.profile*.a yet for the target platform and installing it to the
+# expected location, so disable coverage support for now with clang when
+# cross-building.
+.if ${COMPILER_TYPE} == "clang" && ${__T} != ${__TT}
+BROKEN_OPTIONS+=COVERAGE
+BROKEN_OPTIONS+=COVERAGE_SUPPORT
+.endif
+
 .include <bsd.mkopt.mk>
 
 #





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