Skip to content

Commit

Permalink
Remove mode_tags_equivalent (#4057)
Browse files Browse the repository at this point in the history
**What type of PR is this?**
starlark cleanup

**What does this PR do? Why is it needed?**
It's unused

**Which issues(s) does this PR fix?**

Fixes #

**Other notes for review**
  • Loading branch information
dzbarsky authored Aug 19, 2024
1 parent 2cbd806 commit 756d39c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions go/private/mode.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,6 @@ def installsuffix(mode):
s += "_msan"
return s

def mode_tags_equivalent(l, r):
# Returns whether two modes are equivalent for Go build tags. For example,
# goos and goarch must match, but static doesn't matter.
return (l.goos == r.goos and
l.goarch == r.goarch and
l.race == r.race and
l.msan == r.msan)

# Ported from https://github.com/golang/go/blob/master/src/cmd/go/internal/work/init.go#L76
_LINK_C_ARCHIVE_PLATFORMS = {
"darwin/arm64": None,
Expand Down

0 comments on commit 756d39c

Please sign in to comment.