From owner-svn-ports-head@FreeBSD.ORG Fri Dec 13 14:14:49 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2619F4FF; Fri, 13 Dec 2013 14:14:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 128B61CA0; Fri, 13 Dec 2013 14:14:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBDEEmUG058051; Fri, 13 Dec 2013 14:14:48 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBDEEmx5058050; Fri, 13 Dec 2013 14:14:48 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201312131414.rBDEEmx5058050@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 13 Dec 2013 14:14:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r336347 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 14:14:49 -0000 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++\"}