svn commit: r333414 - head/share/mk

John Baldwin jhb at FreeBSD.org
Wed May 9 15:20:40 UTC 2018


Author: jhb
Date: Wed May  9 15:20:39 2018
New Revision: 333414
URL: https://svnweb.freebsd.org/changeset/base/333414

Log:
  Recognize the base/gcc compiler as GCC.
  
  The existing patterns for 'cc --version' output do not work for GCC
  built from the base/gcc port.
  
  Reviewed by:	imp
  Differential Revision:	https://reviews.freebsd.org/D15357

Modified:
  head/share/mk/bsd.compiler.mk

Modified: head/share/mk/bsd.compiler.mk
==============================================================================
--- head/share/mk/bsd.compiler.mk	Wed May  9 15:16:25 2018	(r333413)
+++ head/share/mk/bsd.compiler.mk	Wed May  9 15:20:39 2018	(r333414)
@@ -157,7 +157,7 @@ ${X_}COMPILER_TYPE:=	gcc
 ${X_}COMPILER_TYPE:=	clang
 . elif ${_v:Mgcc}
 ${X_}COMPILER_TYPE:=	gcc
-. elif ${_v:M\(GCC\)}
+. elif ${_v:M\(GCC\)} || ${_v:M*GNU}
 ${X_}COMPILER_TYPE:=	gcc
 . elif ${_v:Mclang} || ${_v:M(clang-*.*.*)}
 ${X_}COMPILER_TYPE:=	clang


More information about the svn-src-all mailing list