From 6ed6563a37d1fe2af12204941aee3b257ae73af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 7 Jun 2021 23:00:32 +0300 Subject: [PATCH] musl-static --- test/go/BUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/go/BUILD b/test/go/BUILD index 1bc6bc2..04833fa 100644 --- a/test/go/BUILD +++ b/test/go/BUILD @@ -7,10 +7,15 @@ go_library( cgo = True, importpath = "github.com/motiejus/bazel-zig-cc/test/go", visibility = ["//visibility:private"], + target_compatible_with = select({ + "@platforms//os:linux": ["@com_github_ziglang_zig//:musl"], + "//conditions:default": [], + }), ) go_binary( name = "go", embed = [":go_lib"], visibility = ["//visibility:public"], + static = "on", )