2011-12-19 13:51:13 -07:00
|
|
|
// Copyright 2009 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.
|
|
|
|
|
|
|
|
// +build ignore
|
|
|
|
|
2010-03-17 00:10:33 -06:00
|
|
|
#include <u.h>
|
|
|
|
#include <libc.h>
|
|
|
|
|
|
|
|
char *template =
|
2011-12-19 13:51:13 -07:00
|
|
|
"// AUTO-GENERATED by autogen.sh; DO NOT EDIT\n\n"
|
2010-03-17 00:10:33 -06:00
|
|
|
"package runtime\n"
|
2011-04-27 13:47:12 -06:00
|
|
|
"const defaultGoroot = `%s`\n"
|
2011-02-02 13:35:54 -07:00
|
|
|
"const theVersion = \"%s\"\n";
|
2010-03-17 00:10:33 -06:00
|
|
|
|
|
|
|
void
|
|
|
|
main(void)
|
|
|
|
{
|
2011-02-02 13:35:54 -07:00
|
|
|
print(template, getgoroot(), getgoversion());
|
2010-03-17 00:10:33 -06:00
|
|
|
exits(0);
|
|
|
|
}
|