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

Enji Cooper ngie at FreeBSD.org
Sun Apr 7 17:22:32 UTC 2019


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>
 
 #


More information about the svn-src-projects mailing list