From owner-svn-src-projects@freebsd.org Sun Oct 22 11:45:52 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFA14E50954 for ; Sun, 22 Oct 2017 11:45:52 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8DD513C6B; Sun, 22 Oct 2017 11:45:52 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9MBjpRc024584; Sun, 22 Oct 2017 11:45:51 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9MBjp6I024582; Sun, 22 Oct 2017 11:45:51 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201710221145.v9MBjp6I024582@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Sun, 22 Oct 2017 11:45:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r324861 - projects/runtime-coverage/share/mk X-SVN-Group: projects X-SVN-Commit-Author: ngie X-SVN-Commit-Paths: projects/runtime-coverage/share/mk X-SVN-Commit-Revision: 324861 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Oct 2017 11:45:52 -0000 Author: ngie Date: Sun Oct 22 11:45:51 2017 New Revision: 324861 URL: https://svnweb.freebsd.org/changeset/base/324861 Log: Only try handling mutating GCNOS if SRCS is not empty This should cure the logspam in certain directory about SRCS:M not evaluating properly, e.g., etc/ Modified: projects/runtime-coverage/share/mk/bsd.lib.mk projects/runtime-coverage/share/mk/bsd.prog.mk Modified: projects/runtime-coverage/share/mk/bsd.lib.mk ============================================================================== --- projects/runtime-coverage/share/mk/bsd.lib.mk Sun Oct 22 11:40:55 2017 (r324860) +++ projects/runtime-coverage/share/mk/bsd.lib.mk Sun Oct 22 11:45:51 2017 (r324861) @@ -458,7 +458,7 @@ _libinstall: .if !defined(LIBRARIES_ONLY) .include -.if defined(_COV_FLAG) +.if defined(_COV_FLAG) && !empty(SRCS) _GCNO_SRCS= ${SRCS:M*.c} ${SRCS:M*.cc} ${SRCS:M*.cpp} ${SRCS:M*.cxx} ${SRCS:M*.C} GCNOS:= ${_GCNO_SRCS:R:S/$/.gcno/g} .undef _GCNO_SRCS Modified: projects/runtime-coverage/share/mk/bsd.prog.mk ============================================================================== --- projects/runtime-coverage/share/mk/bsd.prog.mk Sun Oct 22 11:40:55 2017 (r324860) +++ projects/runtime-coverage/share/mk/bsd.prog.mk Sun Oct 22 11:45:51 2017 (r324861) @@ -305,7 +305,7 @@ NLSNAME?= ${PROG} .include .include -.if defined(_COV_FLAG) +.if defined(_COV_FLAG) && !empty(SRCS) _GCDA_SRCS= ${SRCS:M*.c} ${SRCS:M*.cc} ${SRCS:M*.cpp} ${SRCS:M*.cxx} ${SRCS:M*.C} GCDAS:= ${_GCDA_SRCS:R:S/$/.gcno/g} .undef _GCDA_SRCS