Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(236)

Delta Between Two Patch Sets: src/make.bash

Issue 6868046: code review 6868046: cmd/dist: support building on debian/kFreeBSD (Closed)
Left Patch Set: diff -r d05272f402ec https://go.googlecode.com/hg/ Created 11 years, 3 months ago
Right Patch Set: diff -r 1f3ebf9a7548 https://go.googlecode.com/hg/ Created 11 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/dist/unix.c ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 # Copyright 2009 The Go Authors. All rights reserved. 2 # Copyright 2009 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style 3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file. 4 # license that can be found in the LICENSE file.
5 5
6 # Environment variables that control make.bash: 6 # Environment variables that control make.bash:
7 # 7 #
8 # GOROOT_FINAL: The expected final Go root, baked into binaries. 8 # GOROOT_FINAL: The expected final Go root, baked into binaries.
9 # The default is the location of the Go tree during the build. 9 # The default is the location of the Go tree during the build.
10 # 10 #
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 echo "Note that this affects your system globally! " 70 echo "Note that this affects your system globally! "
71 echo 71 echo
72 echo "The build will continue in five seconds in case we " 72 echo "The build will continue in five seconds in case we "
73 echo "misdiagnosed the issue..." 73 echo "misdiagnosed the issue..."
74 74
75 sleep 5 75 sleep 5
76 fi 76 fi
77 fi 77 fi
78 done 78 done
79 79
80 # Test for debian/kFreeBSD.
81 # cmd/dist will detect kFreeBSD as freebsd/$GOARCH, but we need to
82 # disable cgo manually.
83 if [ "$(uname -s)" == "GNU/kFreeBSD" ]; then
84 export CGO_ENABLED=0
85 fi
86
80 # Clean old generated file that will cause problems in the build. 87 # Clean old generated file that will cause problems in the build.
81 rm -f ./pkg/runtime/runtime_defs.go 88 rm -f ./pkg/runtime/runtime_defs.go
82 89
83 # Finally! Run the build. 90 # Finally! Run the build.
84 91
85 echo '# Building C bootstrap tool.' 92 echo '# Building C bootstrap tool.'
86 echo cmd/dist 93 echo cmd/dist
87 export GOROOT="$(cd .. && pwd)" 94 export GOROOT="$(cd .. && pwd)"
88 GOROOT_FINAL="${GOROOT_FINAL:-$GOROOT}" 95 GOROOT_FINAL="${GOROOT_FINAL:-$GOROOT}"
89 DEFGOROOT='-DGOROOT_FINAL="'"$GOROOT_FINAL"'"' 96 DEFGOROOT='-DGOROOT_FINAL="'"$GOROOT_FINAL"'"'
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 135
129 echo "# Building packages and commands for $GOOS/$GOARCH." 136 echo "# Building packages and commands for $GOOS/$GOARCH."
130 "$GOTOOLDIR"/go_bootstrap install -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std 137 "$GOTOOLDIR"/go_bootstrap install -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std
131 echo 138 echo
132 139
133 rm -f "$GOTOOLDIR"/go_bootstrap 140 rm -f "$GOTOOLDIR"/go_bootstrap
134 141
135 if [ "$1" != "--no-banner" ]; then 142 if [ "$1" != "--no-banner" ]; then
136 "$GOTOOLDIR"/dist banner 143 "$GOTOOLDIR"/dist banner
137 fi 144 fi
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b