summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-05-28 07:51:10 +0000
committerMike Frysinger <vapier@gentoo.org>2015-05-28 07:51:10 +0000
commitc9fec4f2e877c52cf98079cc4f228d7067c7b012 (patch)
treea01547add66c44329a239c4926fbbb160a992c83 /eclass
parentRename ebuild to comply with Gentoo naming scheme. (diff)
downloadgentoo-2-c9fec4f2e877c52cf98079cc4f228d7067c7b012.tar.gz
gentoo-2-c9fec4f2e877c52cf98079cc4f228d7067c7b012.tar.bz2
gentoo-2-c9fec4f2e877c52cf98079cc4f228d7067c7b012.zip
tc-getGO: new helper from Chromium OS for locating the Go compiler
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 387412c601e9..c9abaae48052 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.137 2015/04/13 05:38:17 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.138 2015/05/28 07:51:10 vapier Exp $
# @ECLASS: toolchain-funcs.eclass
# @MAINTAINER:
@@ -100,6 +100,10 @@ tc-getFC() { tc-getPROG FC gfortran "$@"; }
# @USAGE: [toolchain prefix]
# @RETURN: name of the java compiler
tc-getGCJ() { tc-getPROG GCJ gcj "$@"; }
+# @FUNCTION: tc-getGO
+# @USAGE: [toolchain prefix]
+# @RETURN: name of the Go compiler
+tc-getGO() { tc-getPROG GO gccgo "$@"; }
# @FUNCTION: tc-getPKG_CONFIG
# @USAGE: [toolchain prefix]
# @RETURN: name of the pkg-config tool