summaryrefslogtreecommitdiff
path: root/src/runtime/debug/debug.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-24 15:10:38 -0400
committerRuss Cox <rsc@golang.org>2014-09-24 15:10:38 -0400
commit4e8210feb144f2ebb74c56815059c69b5b629f4e (patch)
tree56598ace354e0b5fec90c62e24701d5adc7e3c16 /src/runtime/debug/debug.s
parent12704ddfa78b72fba74cac169f421cb6c61197be (diff)
downloadgo-4e8210feb144f2ebb74c56815059c69b5b629f4e.tar.gz
cmd/go: prohibit C sources files unless using cgo
Those C files would have been compiled with 6c. It's close to impossible to use C correctly anymore, and the C compilers are going away eventually. Make them unavailable now. go1.4.txt change in CL 145890046 LGTM=iant R=iant CC=golang-codereviews, r https://codereview.appspot.com/149720043
Diffstat (limited to 'src/runtime/debug/debug.s')
-rw-r--r--src/runtime/debug/debug.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/debug/debug.s b/src/runtime/debug/debug.s
new file mode 100644
index 000000000..a7292c477
--- /dev/null
+++ b/src/runtime/debug/debug.s
@@ -0,0 +1,9 @@
+// Copyright 2013 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.
+
+// Nothing to see here.
+// This file exists so that the go command knows that parts of the
+// package are implemented in C, so that it does not instruct the
+// Go compiler to complain about extern declarations.
+// The actual implementations are in package runtime.