Skip to content

Commit

Permalink
test/cgo: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Motiejus Jakštys authored and motiejus committed Feb 21, 2024
1 parent a5dcb8c commit c33a2e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
8 changes: 0 additions & 8 deletions rules/platform.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ platform_binary = rule(
executable = True,
)

# wrap a single test target and build it for the specified platform.
platform_test = rule(
implementation = _platform_binary_impl,
cfg = _platform_transition,
attrs = _attrs,
test = True,
)

## Copied from https://github.com/bazelbuild/bazel-skylib/blob/1.4.1/lib/paths.bzl#L22
def _paths_basename(p):
return p.rpartition("/")[-1]
12 changes: 1 addition & 11 deletions test/cgo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the MIT License

load("@rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@hermetic_cc_toolchain//rules:platform.bzl", "platform_binary", "platform_test")
load("@hermetic_cc_toolchain//rules:platform.bzl", "platform_binary")

go_library(
name = "cgo_lib",
Expand All @@ -24,16 +24,6 @@ go_binary(
visibility = ["//visibility:public"],
)

_LINUX_AMD64 = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
]

_WINDOWS_AMD64 = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
]

[
(
platform_binary(
Expand Down

0 comments on commit c33a2e5

Please sign in to comment.