diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-14 15:19:53 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-14 15:21:03 -0800 |
commit | 48d9aa7ab371691d28a44533f67e495173554098 (patch) | |
tree | b15a7deb10338484e1c37cc52555900cf8f8fb3f /tools/go_marshal/test/BUILD | |
parent | 3557b2665198b57c04924ad4be8dbf9e42cedf71 (diff) |
Add a minimal binary target for escape analysis on go-marshal.
Note that this is not an automated test.
PiperOrigin-RevId: 295238672
Diffstat (limited to 'tools/go_marshal/test/BUILD')
-rw-r--r-- | tools/go_marshal/test/BUILD | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/go_marshal/test/BUILD b/tools/go_marshal/test/BUILD index e345e3a8e..f27c5ce52 100644 --- a/tools/go_marshal/test/BUILD +++ b/tools/go_marshal/test/BUILD @@ -1,4 +1,4 @@ -load("//tools:defs.bzl", "go_library", "go_test") +load("//tools:defs.bzl", "go_binary", "go_library", "go_test") licenses(["notice"]) @@ -27,3 +27,15 @@ go_library( marshal = True, deps = ["//tools/go_marshal/test/external"], ) + +go_binary( + name = "escape", + testonly = 1, + srcs = ["escape.go"], + gc_goopts = ["-m"], + deps = [ + ":test", + "//pkg/usermem", + "//tools/go_marshal/marshal", + ], +) |