From 982ada2d280c83740abb9ba6e2af01a20e81f5f9 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Thu, 8 Dec 2022 17:06:50 +0000 Subject: [PATCH] Add target that actually uses cgo --- tests/core/cross/BUILD.bazel | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/core/cross/BUILD.bazel b/tests/core/cross/BUILD.bazel index 5e4ddbf4b6..5f4af9a740 100644 --- a/tests/core/cross/BUILD.bazel +++ b/tests/core/cross/BUILD.bazel @@ -24,6 +24,21 @@ go_binary( deps = [":platform_lib"], ) +go_binary( + name = "linux_cross_impure", + srcs = ["main.go"], + goarch = "amd64", + goos = "linux", + pure = "off", + deps = [":platform_lib"], +) + +go_cross_binary( + name = "linux_go_cross_impure_cgo", + platform = "@io_bazel_rules_go//go/toolchain:linux_amd64_cgo", + target = ":linux_cross_impure", +) + go_binary( name = "darwin_cross", srcs = ["main.go"],