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

Unified Diff: src/cmd/gc/mkbuiltin

Issue 171044: Remove GOBIN in PATH dependency; don't assume cwd is $G... (Closed)
Patch Set: code review 171044: Remove GOBIN in PATH dependency; don't assume cwd is $G... Created 15 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/ebnflint/Makefile ('k') | src/cmd/gotest/gotest » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/gc/mkbuiltin
===================================================================
--- a/src/cmd/gc/mkbuiltin
+++ b/src/cmd/gc/mkbuiltin
@@ -5,6 +5,8 @@
set -e
+GOBIN="${GOBIN:-$HOME/bin}"
+
. "$GOROOT"/src/Make.$GOARCH
if [ -z "$GC" ]; then
echo 'missing $GC - maybe no Make.$GOARCH?' 1>&2
@@ -15,7 +17,7 @@
rm -f _builtin.c
for i in runtime unsafe
do
- $GC -A $i.go
+ "$GOBIN"/$GC -A $i.go
O=$O ./mkbuiltin1 $i >>_builtin.c
done
« no previous file with comments | « src/cmd/ebnflint/Makefile ('k') | src/cmd/gotest/gotest » ('j') | no next file with comments »

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