You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
In particular, using -ldflags with - In particular, a command like: garble -literals build -ldflags='-X "main.foo=foo bar"' would fail, because we would try to use "\"main" as the package name for the -X qualified name, with the leading quote character. This is because we used strings.Split(ldflags, " "). Instead, use the same quoted.Split that cmd/go uses, copied over thanks to x/tools/cmd/bundle and go:generate. Updates #492. |
2 years ago | |
---|---|---|
.. | ||
asm.txt | 3 years ago | |
basic.txt | 3 years ago | |
cgo.txt | 2 years ago | |
crossbuild.txt | 3 years ago | |
debugdir.txt | 3 years ago | |
embed.txt | 3 years ago | |
gogarble.txt | 3 years ago | |
goversion.txt | 3 years ago | |
help.txt | 3 years ago | |
implement.txt | 3 years ago | |
imports.txt | 3 years ago | |
init.txt | 3 years ago | |
ldflags.txt | 2 years ago | |
linkname.txt | 3 years ago | |
literals.txt | 3 years ago | |
modinfo.txt | 3 years ago | |
plugin.txt | 3 years ago | |
position.txt | 3 years ago | |
reflect.txt | 2 years ago | |
reverse.txt | 3 years ago | |
seed.txt | 3 years ago | |
syntax.txt | 2 years ago | |
test.txt | 3 years ago | |
tiny.txt | 3 years ago |