• Ian Lance Taylor's avatar
    cmd/go: don't generate output for "go build -o /dev/null x.go" · c1d9d1f3
    Ian Lance Taylor authored
    We look for "-o /dev/null", and, if found, pretend that there was no
    "-o" option and don't generate an action to create the final executable.
    
    We look for "go build x.go", and, if found, and if -o was not used,
    pretend that the user specified "-o x".
    
    Unfortunately, we were doing those in the wrong order, so that "go
    build -o /dev/null x.go" would first clear the "-o" option and then
    set it to "-o x".
    
    This CL flips the order so that the right thing happens.
    
    Fixes #25579
    
    Change-Id: Ic9556ac0a57f7b45b685951bc96ba5ea4633b860
    Reviewed-on: https://go-review.googlesource.com/114715
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    c1d9d1f3
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...