From owner-svn-ports-all@FreeBSD.ORG Wed Oct 9 05:52:46 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0C6F461E; Wed, 9 Oct 2013 05:52:46 +0000 (UTC) (envelope-from bapt@FreeBSD.org) 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 EEEF92C7B; Wed, 9 Oct 2013 05:52:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r995qjk4046620; Wed, 9 Oct 2013 05:52:45 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r995qj0H046619; Wed, 9 Oct 2013 05:52:45 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201310090552.r995qj0H046619@svn.freebsd.org> From: Baptiste Daroussin Date: Wed, 9 Oct 2013 05:52:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r329860 - 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-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 05:52:46 -0000 Author: bapt Date: Wed Oct 9 05:52:45 2013 New Revision: 329860 URL: http://svnweb.freebsd.org/changeset/ports/329860 Log: Add a new argument openmp to make sure that only gcc is used (for now) is the port requires openmp Requested by: brooks Modified: head/Mk/Uses/compiler.mk Modified: head/Mk/Uses/compiler.mk ============================================================================== --- head/Mk/Uses/compiler.mk Wed Oct 9 05:45:00 2013 (r329859) +++ head/Mk/Uses/compiler.mk Wed Oct 9 05:52:45 2013 (r329860) @@ -11,6 +11,7 @@ # c++11-lang: The port need a compiler understanding C++11 # c++11-lib: The port need a compiler understanding C++11 and with a C++11 ready standard library # c11: The port need a compiler understanding c11 +# openmp: The port need a compiler understanding openmp # features: The port will determine the features supported by the default compiler # # Variable to test after @@ -39,6 +40,8 @@ _COMPILER_ARGS+= features c11 _COMPILER_ARGS+= features .elif ${compiler_ARGS} == env _COMPILER_ARGS+= env +.elif ${compiler_ARGS} == openmp +_COMPILER_ARGS+= env openmp .else IGNORE= Invalid argument "${compiler_ARGS}", valid arguments are: ${VALID_ARGS} _COMPILER_ARGS= # @@ -56,6 +59,12 @@ COMPILER_TYPE= clang COMPILER_TYPE= gcc .endif +.if ${_COMPILER_ARGS:Mopenmp} +.if ${COMPILER_TYPE} == clang +USE_GCC= any +.endif +.endif + .if ${_COMPILER_ARGS:Mfeatures} _CXXINTERNAL!= ${CXX} -\#\#\# /dev/null 2>&1 .if ${_CXXINTERNAL:M\"-lc++\"}