diff options
| author | Bryan C. Mills <bcmills@google.com> | 2019-11-22 13:30:47 -0500 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2019-11-22 21:09:43 +0000 |
| commit | 9f3c2b6d16bd00f77d8c92801425809d4d767baa (patch) | |
| tree | 0713caeb74e38e5d89d2f24dd8eb11fc758fc54b /src/cmd/internal/sys | |
| parent | 8324acadfe682ec72b3dd75e43ee174940817f28 (diff) | |
| download | go-9f3c2b6d16bd00f77d8c92801425809d4d767baa.tar.xz | |
cmd/go/internal/work: reduce code duplication in buildModeInit by using sys.BuildModeSupported
Updates #34347
Change-Id: I6ea02d4737999bf24f5335508b5ed2352b498122
Reviewed-on: https://go-review.googlesource.com/c/go/+/208458
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/internal/sys')
| -rw-r--r-- | src/cmd/internal/sys/supported.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/internal/sys/supported.go b/src/cmd/internal/sys/supported.go index 78aa825a78..02f833e945 100644 --- a/src/cmd/internal/sys/supported.go +++ b/src/cmd/internal/sys/supported.go @@ -47,11 +47,6 @@ func MustLinkExternal(goos, goarch string) bool { // BuildModeSupported reports whether goos/goarch supports the given build mode // using the given compiler. func BuildModeSupported(compiler, buildmode, goos, goarch string) bool { - // This function mirrors the logic in cmd/go/internal/work.buildModeInit. - // - // TODO(bcmills): Refactor buildModeInit to use this function so that the two - // don't get out of sync. - if compiler == "gccgo" { return true } |
