aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2015-11-12 14:52:01 -0500
committerMinux Ma <minux@golang.org>2015-11-12 19:57:46 +0000
commitb28eeea136ec106a012be8b4278cb06203328c08 (patch)
tree08fb7f719497ed0fe1e9f5d16065751b9123be43 /src
parentd3498c5abdea7bd8c74f349abb5c2bf110229e75 (diff)
downloadgo-b28eeea136ec106a012be8b4278cb06203328c08.tar.xz
cmd/dist: copy textflag.h for runtime/internal/* too
Change-Id: I22216df83898e560cfe6d97344f05e3678c2db99 Reviewed-on: https://go-review.googlesource.com/16872 Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/dist/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
index 212dd172a3..54e3fdf040 100644
--- a/src/cmd/dist/build.go
+++ b/src/cmd/dist/build.go
@@ -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),