|
|
@ -18,16 +18,30 @@ go_binary(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
platform(
|
|
|
|
platform(
|
|
|
|
name = "darwin/amd64",
|
|
|
|
name = "macos",
|
|
|
|
constraint_values = [
|
|
|
|
constraint_values = [
|
|
|
|
"@platforms//os:darwin",
|
|
|
|
"@platforms//os:osx",
|
|
|
|
"@platforms//cpu:amd64",
|
|
|
|
"@platforms//cpu:x86_64",
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform(
|
|
|
|
|
|
|
|
name = "linux",
|
|
|
|
|
|
|
|
constraint_values = [
|
|
|
|
|
|
|
|
"@platforms//os:linux",
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
go_cross_binary(
|
|
|
|
|
|
|
|
name = "darwin_binary",
|
|
|
|
|
|
|
|
platform = ":macos",
|
|
|
|
|
|
|
|
sdk_version = "1.21.0",
|
|
|
|
|
|
|
|
target = "base",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
go_cross_binary(
|
|
|
|
go_cross_binary(
|
|
|
|
name = "macOS",
|
|
|
|
name = "linux_binary",
|
|
|
|
platform = "@bazel_tools//platforms:osx",
|
|
|
|
platform = ":linux",
|
|
|
|
sdk_version = "1.21.0",
|
|
|
|
sdk_version = "1.21.0",
|
|
|
|
target = "base",
|
|
|
|
target = "base",
|
|
|
|
)
|
|
|
|
)
|
|
|
|