diff options
| author | Than McIntosh <thanm@google.com> | 2019-03-22 15:24:36 -0400 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2019-03-25 14:59:58 +0000 |
| commit | fbd74a8922434ada5871a875598b58cbca4ff0d6 (patch) | |
| tree | a3847a1efb8a9ded5c54c08867f27ac89c69ce45 /src/database/sql/example_test.go | |
| parent | 68a98d52794fc324841f62732411f6bba23fc62c (diff) | |
| download | go-fbd74a8922434ada5871a875598b58cbca4ff0d6.tar.xz | |
test: support -ldflags for "rundir" tests, new -P option
For "rundir" tests, allow users to add in linker flags as well as
compiler flags, e.g.
// rundir -m -ldflags -w
The directive above will pass "-m" to the compiler on each package compilation
and "-w" to the linker for the final link.
In addition, if "-P" is specified with 'rundir', then for each compile
pass in "-p <X>" to set the packagepath explicitly, which is closer to
how the compiler is run by 'go build'.
Change-Id: I04720011a89d1bd8dcb4f2ccb4af1d74f6a01da1
Reviewed-on: https://go-review.googlesource.com/c/go/+/168977
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/database/sql/example_test.go')
0 files changed, 0 insertions, 0 deletions
