]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: deprecate -X name value in favor of -X name=value
authorRuss Cox <rsc@golang.org>
Thu, 21 May 2015 18:35:02 +0000 (14:35 -0400)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Fri, 5 Jun 2015 04:55:41 +0000 (04:55 +0000)
commit12795c02f3d6fc54ece09a86e70aaa40a94d5131
treee823ba0f095be8debdd0a4a8440658801e27fab8
parent630930c35ef7b5e22e28a6424425b887bb12c9b6
cmd/link: deprecate -X name value in favor of -X name=value

People invoking the linker directly already have to change their scripts
to use the new "go tool link", so this is a good time to make the -X flag
behave like all other Go flags and take just a single argument.

The old syntax will continue to be accepted (it is rewritten into the new
syntax before flag parsing). Maybe some day we will be able to retire it.

Even if we never retire the old syntax, having the new syntax at least
makes the rewriting much less of a kludge.

Change-Id: I91e8df94f4c22b2186e81d7f1016b8767d777eac
Reviewed-on: https://go-review.googlesource.com/10310
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/pobj.go
test/linkx.go
test/linkx_run.go