Skip to content

Commit

Permalink
Add target that actually uses cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Dec 8, 2022
1 parent 1844926 commit 982ada2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/core/cross/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 982ada2

Please sign in to comment.