]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add Compiler
authorRuss Cox <rsc@golang.org>
Tue, 6 Mar 2012 03:28:02 +0000 (22:28 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 6 Mar 2012 03:28:02 +0000 (22:28 -0500)
R=iant, r, gri
CC=golang-dev
https://golang.org/cl/5720073

src/pkg/runtime/compiler.go [new file with mode: 0644]

diff --git a/src/pkg/runtime/compiler.go b/src/pkg/runtime/compiler.go
new file mode 100644 (file)
index 0000000..562a460
--- /dev/null
@@ -0,0 +1,13 @@
+// Copyright 2012 The Go Authors.  All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package runtime
+
+// Compiler is the name of the compiler toolchain that built the
+// running binary.  Known toolchains are:
+//
+//     gc      The 5g/6g/8g compiler suite at code.google.com/p/go.
+//     gccgo   The gccgo front end, part of the GCC compiler suite.
+//
+const Compiler = "gc"