]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: unleash bootstrap optimization for windows
authorMarvin Stenger <marvin.stenger94@gmail.com>
Sun, 3 Sep 2017 18:01:00 +0000 (20:01 +0200)
committerIan Lance Taylor <iant@golang.org>
Sat, 9 Sep 2017 10:13:46 +0000 (10:13 +0000)
This belongs to a series of clean-up changes (see below) for cmd/dist.
This is change (3).

These changes include:
(1)  apply minor fixes
(2)  restore behavior of branchtag
(3)  unleash bootstrap optimization for windows
(4)  use standard generated code header
(5)  remove trivial variables + functions
(6)  move functions for the better
(7)  simplify code segments
(8)  use bytes.Buffer for code generation
(9)  rename variables + functions
(10) remove doc.go

Change-Id: I7612bbc3939e6fca3bee4b8e92c528178dd46cd7
Reviewed-on: https://go-review.googlesource.com/61023
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/dist/buildtool.go

index 8a3db32ad3498779fdd71ffcbd6f392f65169b8d..77cf41a3eb137db4c36f6c390e0d874c58291b07 100644 (file)
@@ -190,7 +190,7 @@ func bootstrapBuildTools() {
        xprintf("\n")
 }
 
-var ssaRewriteFileSubstring = filepath.ToSlash("src/cmd/compile/internal/ssa/rewrite")
+var ssaRewriteFileSubstring = filepath.FromSlash("src/cmd/compile/internal/ssa/rewrite")
 
 // isUnneededSSARewriteFile reports whether srcFile is a
 // src/cmd/compile/internal/ssa/rewriteARCHNAME.go file for an