1

buildifier

This commit is contained in:
Motiejus Jakštys
2021-11-05 19:47:52 +02:00
parent 523943bd35
commit 34b85cf57f
2 changed files with 15 additions and 15 deletions

View File

@@ -10,17 +10,17 @@ Example: if this toolchain is registered as bazel-zig-cc in your WORKSPACE, add
your root BUILD file
# gazelle:map_kind go_binary go_binary @bazel-zig-cc//rules:go_binary_override.bzl
"""
def go_binary(**args):
new_args = {}
new_args["gc_linkopts"] = select({
"@platforms//os:macos": [
"-s",
"-w",
"-buildmode=pie",
],
"//conditions:default": [],
})
for k, v in args.items():
new_args[k] = v
go_binary_rule(**new_args)
def go_binary(**args):
new_args = {}
new_args["gc_linkopts"] = select({
"@platforms//os:macos": [
"-s",
"-w",
"-buildmode=pie",
],
"//conditions:default": [],
})
for k, v in args.items():
new_args[k] = v
go_binary_rule(**new_args)