cmd/go: the -o
option does not append .exe suffix to the compiled executable
#59790
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Unfortunate
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried to compile any go program and specify an executable name by
-o
option, such asgo build -o hello ./hello-world.go
What did you expect to see?
The executable name should be
hello.exe
. clang and gcc both add the.exe
suffix automatically.What did you see instead?
The executable name is simply
hello
, which will not be recognized by Windows as an executable file.The text was updated successfully, but these errors were encountered: