aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2022-06-29 13:20:36 -0700
committerMatthew Dempsky <mdempsky@google.com>2022-07-13 21:42:33 +0000
commit558785a0a9df5fbb7e9617c05059cf2892884620 (patch)
treed881d9ec0cf65b892c0fc6f56fde6357a55853ca /src/cmd/compile/internal/noder
parent1355ea3045cd1327740ecfb7387918db45bf4f89 (diff)
downloadgo-558785a0a9df5fbb7e9617c05059cf2892884620.tar.xz
cmd/compile: remove -installsuffix flag
Obsoleted by -importcfg. cmd/link has a similar flag, but it seems to still be needed at least for misc/cgo/testshared.TestGopathShlib. I can't immediately tell why (has something to do with finding .so files), but it doesn't appear to possibly affect cmd/compile. Updates #51225. Change-Id: I80c6aef860bd162c010ad4a1a4f532b400cf901c Reviewed-on: https://go-review.googlesource.com/c/go/+/415236 Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/noder')
-rw-r--r--src/cmd/compile/internal/noder/import.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/noder/import.go b/src/cmd/compile/internal/noder/import.go
index 2cef9f75e8..f718c8db5d 100644
--- a/src/cmd/compile/internal/noder/import.go
+++ b/src/cmd/compile/internal/noder/import.go
@@ -102,9 +102,7 @@ func openPackage(path string) (*os.File, error) {
if buildcfg.GOROOT != "" {
suffix := ""
- if base.Flag.InstallSuffix != "" {
- suffix = "_" + base.Flag.InstallSuffix
- } else if base.Flag.Race {
+ if base.Flag.Race {
suffix = "_race"
} else if base.Flag.MSan {
suffix = "_msan"