Commit 267f56e1 authored by Russ Cox's avatar Russ Cox

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
parent 4953b872
...@@ -136,6 +136,11 @@ main(int argc, char *argv[]) ...@@ -136,6 +136,11 @@ main(int argc, char *argv[])
case 'V': case 'V':
print("%cl version %s\n", thechar, getgoversion()); print("%cl version %s\n", thechar, getgoversion());
errorexit(); errorexit();
case 'X':
// TODO: golang.org/issue/2676
EARGF(usage());
EARGF(usage());
break;
} ARGEND } ARGEND
USED(argc); USED(argc);
......
...@@ -132,6 +132,11 @@ main(int argc, char *argv[]) ...@@ -132,6 +132,11 @@ main(int argc, char *argv[])
case 'V': case 'V':
print("%cl version %s\n", thechar, getgoversion()); print("%cl version %s\n", thechar, getgoversion());
errorexit(); errorexit();
case 'X':
// TODO: golang.org/issue/2676
EARGF(usage());
EARGF(usage());
break;
} ARGEND } ARGEND
if(argc != 1) if(argc != 1)
......
...@@ -137,6 +137,11 @@ main(int argc, char *argv[]) ...@@ -137,6 +137,11 @@ main(int argc, char *argv[])
case 'V': case 'V':
print("%cl version %s\n", thechar, getgoversion()); print("%cl version %s\n", thechar, getgoversion());
errorexit(); errorexit();
case 'X':
// TODO: golang.org/issue/2676
EARGF(usage());
EARGF(usage());
break;
} ARGEND } ARGEND
if(argc != 1) if(argc != 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment