Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2019 19:36:41 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r351960 - stable/12/share/mk
Message-ID:  <201909061936.x86JafAx067922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Fri Sep  6 19:36:41 2019
New Revision: 351960
URL: https://svnweb.freebsd.org/changeset/base/351960

Log:
  MFC r350453:
  
  Add a CXXWARNFLAGS variable
  
  Some warning flags are valid for C++ but not C. GCC 8 complains if you pass
  such flags when building a C file. Using a separate variable for these
  flags allows building both C and C++ files in the same directory (such as
  the fusefs tests) under GCC.
  
  Reviewed by:	cem, emaste
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D21116

Modified:
  stable/12/share/mk/bsd.sys.mk
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/share/mk/bsd.sys.mk
==============================================================================
--- stable/12/share/mk/bsd.sys.mk	Fri Sep  6 19:30:23 2019	(r351959)
+++ stable/12/share/mk/bsd.sys.mk	Fri Sep  6 19:36:41 2019	(r351960)
@@ -234,6 +234,8 @@ DEBUG_FILES_CFLAGS?= -g
 .if ${MK_WARNS} != "no"
 CFLAGS+=	${CWARNFLAGS:M*} ${CWARNFLAGS.${COMPILER_TYPE}}
 CFLAGS+=	${CWARNFLAGS.${.IMPSRC:T}}
+CXXFLAGS+=	${CXXWARNFLAGS:M*} ${CXXWARNFLAGS.${COMPILER_TYPE}}
+CXXFLAGS+=	${CXXWARNFLAGS.${.IMPSRC:T}}
 .endif
 
 CFLAGS+=	 ${CFLAGS.${COMPILER_TYPE}}



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