]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: copy textflag.h for runtime/internal/* too
authorShenghou Ma <minux@golang.org>
Thu, 12 Nov 2015 19:52:01 +0000 (14:52 -0500)
committerMinux Ma <minux@golang.org>
Thu, 12 Nov 2015 19:57:46 +0000 (19:57 +0000)
Change-Id: I22216df83898e560cfe6d97344f05e3678c2db99
Reviewed-on: https://go-review.googlesource.com/16872
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/dist/build.go

index 212dd172a375cbd470555ecf3b51f6c7e73373ec..54e3fdf0409159241d1d6bd61a3014c44a66a0ad 100644 (file)
@@ -620,7 +620,7 @@ func install(dir string) {
        }
 
        // For package runtime, copy some files into the work space.
-       if dir == "runtime" {
+       if dir == "runtime" || strings.HasPrefix(dir, "runtime/internal/") {
                xmkdirall(pathf("%s/pkg/include", goroot))
                // For use by assembly and C files.
                copyfile(pathf("%s/pkg/include/textflag.h", goroot),