1

add macos support

+ buildifier
This commit is contained in:
2021-06-16 12:44:16 +03:00
committed by Motiejus Jakštys
parent 58a04fbfec
commit 39535dadc5
3 changed files with 67 additions and 48 deletions

View File

@@ -11,6 +11,19 @@ go_library(
go_binary(
name = "gognu",
embed = [":go_lib"],
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
)
go_binary(
name = "gomacos",
embed = [":go_lib"],
gc_linkopts = [
"-s",
"-w",
"-buildmode=pie",
],
target_compatible_with = ["@platforms//os:macos"],
visibility = ["//visibility:public"],
)