summaryrefslogtreecommitdiff
path: root/src/cmd/asm/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/asm/main.go')
-rw-r--r--src/cmd/asm/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/asm/main.go b/src/cmd/asm/main.go
index 08354119a6..3c02d4eebd 100644
--- a/src/cmd/asm/main.go
+++ b/src/cmd/asm/main.go
@@ -30,8 +30,7 @@ func main() {
log.Fatalf("asm: unrecognized architecture %s", GOARCH)
}
- // Is this right?
- flags.Parse(build.Default.GOROOT, build.Default.GOOS, GOARCH, architecture.Thechar)
+ flags.Parse(obj.Getgoroot(), obj.Getgoos(), obj.Getgoarch(), architecture.Thechar)
// Create object file, write header.
fd, err := os.Create(*flags.OutputFile)