summaryrefslogtreecommitdiffstats
path: root/src/runtime/compiler.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/runtime/compiler.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/compiler.go b/src/runtime/compiler.go
new file mode 100644
index 0000000..1ebc62d
--- /dev/null
+++ b/src/runtime/compiler.go
@@ -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 Also known as cmd/compile.
+// gccgo The gccgo front end, part of the GCC compiler suite.
+//
+const Compiler = "gc"