aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objabi
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/internal/objabi')
-rw-r--r--src/cmd/internal/objabi/flag.go14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/cmd/internal/objabi/flag.go b/src/cmd/internal/objabi/flag.go
index 32d71d0575..603bf8746c 100644
--- a/src/cmd/internal/objabi/flag.go
+++ b/src/cmd/internal/objabi/flag.go
@@ -95,16 +95,10 @@ func (versionFlag) Set(s string) error {
p := ""
- if s == "goexperiment" {
- // test/run.go uses this to discover the full set of
- // experiment tags. Report everything.
- p = " X:" + strings.Join(buildcfg.Experiment.All(), ",")
- } else {
- // If the enabled experiments differ from the baseline,
- // include that difference.
- if goexperiment := buildcfg.Experiment.String(); goexperiment != "" {
- p = " X:" + goexperiment
- }
+ // If the enabled experiments differ from the baseline,
+ // include that difference.
+ if goexperiment := buildcfg.Experiment.String(); goexperiment != "" {
+ p = " X:" + goexperiment
}
// The go command invokes -V=full to get a unique identifier