summaryrefslogtreecommitdiffhomepage
path: root/tools/defs.bzl
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-10-09 12:31:35 -0700
committergVisor bot <gvisor-bot@google.com>2020-10-09 12:33:44 -0700
commit6229be5e48578dda3b08b6b0c3d381553e7b31ef (patch)
treeb507d44fa2a5e135722753d803321735ced3e79a /tools/defs.bzl
parent743327817faa1aa46ff3b31f74a0c5c2d047d65a (diff)
Minor nogo restructuring.
PiperOrigin-RevId: 336343819
Diffstat (limited to 'tools/defs.bzl')
-rw-r--r--tools/defs.bzl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/defs.bzl b/tools/defs.bzl
index 64cacb27a..e2c72a1f6 100644
--- a/tools/defs.bzl
+++ b/tools/defs.bzl
@@ -72,6 +72,7 @@ def go_binary(name, nogo = True, pure = False, static = False, x_defs = None, **
)
nogo_test(
name = name + "_nogo",
+ srcs = kwargs.get("srcs", []),
library = ":" + name + "_nogo_library",
)
@@ -203,6 +204,7 @@ def go_library(name, srcs, deps = [], imports = [], stateify = True, marshal = F
if nogo:
nogo_test(
name = name + "_nogo",
+ srcs = all_srcs,
library = ":" + name,
)
@@ -239,6 +241,7 @@ def go_test(name, nogo = True, **kwargs):
if nogo:
nogo_test(
name = name + "_nogo",
+ srcs = kwargs.get("srcs", []),
library = ":" + name,
)