1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:34:40 -07:00

5l: assume Linux binary, not Plan 9

R=bradfitz
CC=golang-dev
https://golang.org/cl/4767042
This commit is contained in:
Russ Cox 2011-07-18 12:30:10 -04:00
parent 3745716bc3
commit 92c6061b5c

View File

@ -145,18 +145,8 @@ main(int argc, char *argv[])
libinit(); libinit();
if(!debug['9'] && !debug['U'] && !debug['B']) if(HEADTYPE == -1)
debug[DEFAULT] = 1;
if(HEADTYPE == -1) {
if(debug['U'])
HEADTYPE = Hnoheader;
else if(debug['B'])
HEADTYPE = Hrisc;
else if(debug['9'])
HEADTYPE = Hplan9x32;
else
HEADTYPE = Hlinux; HEADTYPE = Hlinux;
}
switch(HEADTYPE) { switch(HEADTYPE) {
default: default:
diag("unknown -H option"); diag("unknown -H option");