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:
parent
4953b87296
commit
267f56e10b
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user