From 1f0f40d6624fb0c55ee3610c5d5c732c56e92e16 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Thu, 17 Aug 2023 15:53:28 -0400 Subject: [PATCH] pretty broken --- cmd/demo/BUILD.bazel | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/cmd/demo/BUILD.bazel b/cmd/demo/BUILD.bazel index d5c9437..c77654e 100644 --- a/cmd/demo/BUILD.bazel +++ b/cmd/demo/BUILD.bazel @@ -18,16 +18,30 @@ go_binary( ) platform( - name = "darwin/amd64", + name = "macos", constraint_values = [ - "@platforms//os:darwin", - "@platforms//cpu:amd64", + "@platforms//os:osx", + "@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( - name = "macOS", - platform = "@bazel_tools//platforms:osx", + name = "linux_binary", + platform = ":linux", sdk_version = "1.21.0", target = "base", )