1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:11:21 -06:00
go/src/pkg/runtime/mkversion.c
Russ Cox 4e64555894 runtime: add GOOS, GOARCH; fix FuncLine
Changes to FuncLine sync it with symtab.c's funcline.

R=r
CC=girard.m1, golang-dev
https://golang.org/cl/2083041
2010-09-02 14:19:12 -04:00

18 lines
346 B
C

#include <u.h>
#include <libc.h>
char *template =
"// generated by mkversion.c; do not edit.\n"
"package runtime\n"
"const defaultGoroot = \"%s\"\n"
"const theVersion = \"%s\"\n"
"const theGoarch = \"%s\"\n"
"const theGoos = \"%s\"\n";
void
main(void)
{
print(template, getgoroot(), getgoversion(), getgoarch(), getgoos());
exits(0);
}