Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2013 14:14:48 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336347 - head/Mk/Uses
Message-ID:  <201312131414.rBDEEmx5058050@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Dec 13 14:14:48 2013
New Revision: 336347
URL: http://svnweb.freebsd.org/changeset/ports/336347

Log:
  Add compiler:nestedfct which will automatically probe USE_GCC=any

Modified:
  head/Mk/Uses/compiler.mk

Modified: head/Mk/Uses/compiler.mk
==============================================================================
--- head/Mk/Uses/compiler.mk	Fri Dec 13 14:11:16 2013	(r336346)
+++ head/Mk/Uses/compiler.mk	Fri Dec 13 14:14:48 2013	(r336347)
@@ -31,7 +31,7 @@ _INCLUDE_USES_COMPILER_MK=	yes
 compiler_ARGS=	env
 .endif
 
-VALID_ARGS=	c++11-lib c++11-lang c11 features openmp env
+VALID_ARGS=	c++11-lib c++11-lang c11 features openmp env nestedfct
 
 .if ${compiler_ARGS} == c++11-lib
 _COMPILER_ARGS+=	features c++11-lib
@@ -45,6 +45,8 @@ _COMPILER_ARGS+=	features
 _COMPILER_ARGS+=	env
 .elif ${compiler_ARGS} == openmp
 _COMPILER_ARGS+=	env openmp
+.elif ${compiler_ARGS} == nestedfct
+_COMPILER_ARGS+=	env nestedfct
 .else
 IGNORE=	Invalid argument "${compiler_ARGS}", valid arguments are: ${VALID_ARGS}
 _COMPILER_ARGS=	#
@@ -87,6 +89,13 @@ CHOSEN_COMPILER_TYPE=	gcc
 .endif
 .endif
 
+.if ${_COMPILER_ARGS:Mnestedfct}
+.if ${COMPILER_TYPE} == clang
+USE_GCC=	any
+CHOSEN_COMPILER_TYPE=	gcc
+.endif
+.endif
+
 .if ${_COMPILER_ARGS:Mfeatures}
 _CXXINTERNAL!=	${CXX} -\#\#\# /dev/null 2>&1
 .if ${_CXXINTERNAL:M\"-lc++\"}



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