1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:54:49 -07:00

ld: parse but do not implement -X flag

This will let programs invoking ld prepare for it.
See issue 2676.

R=iant
CC=golang-dev
https://golang.org/cl/5535044
This commit is contained in:
Russ Cox 2012-01-12 10:23:24 -08:00
parent 4953b87296
commit 267f56e10b
3 changed files with 15 additions and 0 deletions

View File

@ -136,6 +136,11 @@ main(int argc, char *argv[])
case 'V':
print("%cl version %s\n", thechar, getgoversion());
errorexit();
case 'X':
// TODO: golang.org/issue/2676
EARGF(usage());
EARGF(usage());
break;
} ARGEND
USED(argc);

View File

@ -132,6 +132,11 @@ main(int argc, char *argv[])
case 'V':
print("%cl version %s\n", thechar, getgoversion());
errorexit();
case 'X':
// TODO: golang.org/issue/2676
EARGF(usage());
EARGF(usage());
break;
} ARGEND
if(argc != 1)

View File

@ -137,6 +137,11 @@ main(int argc, char *argv[])
case 'V':
print("%cl version %s\n", thechar, getgoversion());
errorexit();
case 'X':
// TODO: golang.org/issue/2676
EARGF(usage());
EARGF(usage());
break;
} ARGEND
if(argc != 1)