diff options
author | Andrei Vagin <avagin@google.com> | 2020-12-09 00:42:53 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2020-12-09 15:51:33 -0800 |
commit | 658f874b94ad83d9b4abed47d9aba856fe5f617c (patch) | |
tree | ce2ea322df840b882d41f02bc27a1e288decefc9 /tools/bazeldefs/go.bzl | |
parent | 96d14de0fa51d6c7fd5a34c69f27caf76a26f7aa (diff) |
Prepare for supporting cross compilation.
PiperOrigin-RevId: 346496532
Diffstat (limited to 'tools/bazeldefs/go.bzl')
-rw-r--r-- | tools/bazeldefs/go.bzl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bazeldefs/go.bzl b/tools/bazeldefs/go.bzl index 661c9727e..bcd8cffe7 100644 --- a/tools/bazeldefs/go.bzl +++ b/tools/bazeldefs/go.bzl @@ -28,7 +28,7 @@ def go_proto_library(name, **kwargs): def go_grpc_and_proto_libraries(name, **kwargs): _go_proto_or_grpc_library(_go_grpc_library, name, **kwargs) -def go_binary(name, static = False, pure = False, x_defs = None, **kwargs): +def go_binary(name, static = False, pure = False, x_defs = None, system_malloc = False, **kwargs): """Build a go binary. Args: @@ -52,7 +52,7 @@ def go_importpath(target): """Returns the importpath for the target.""" return target[GoLibrary].importpath -def go_library(name, **kwargs): +def go_library(name, arch_deps = [], **kwargs): _go_library( name = name, importpath = "gvisor.dev/gvisor/" + native.package_name(), |