1
0
mirror of https://github.com/golang/go synced 2024-11-19 11:14:47 -07:00

6l: change default output name to 6.out.exe on windows

R=golang-dev, vcc.163
CC=golang-dev
https://golang.org/cl/4670049
This commit is contained in:
Alex Brainman 2011-07-12 14:22:48 +10:00
parent ce3c3953be
commit 8ed9fc600c

View File

@ -84,7 +84,7 @@ main(int argc, char *argv[])
listinit();
memset(debug, 0, sizeof(debug));
nerrors = 0;
outfile = "6.out";
outfile = nil;
HEADTYPE = -1;
INITTEXT = -1;
INITDAT = -1;
@ -134,11 +134,20 @@ main(int argc, char *argv[])
if(argc != 1)
usage();
libinit();
mywhatsys(); // get goos
if(HEADTYPE == -1)
HEADTYPE = headtype(goos);
if(outfile == nil) {
if(HEADTYPE == Hwindows)
outfile = "6.out.exe";
else
outfile = "6.out";
}
libinit();
switch(HEADTYPE) {
default:
diag("unknown -H option");