summaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/make.bash b/src/make.bash
index 60e3f62dc..b223d23b7 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -16,7 +16,8 @@ fi
bash clean.bash
rm -f $GOBIN/quietgcc
-cp quietgcc.bash $GOBIN/quietgcc
+CC=${CC:-gcc}
+sed -e "s|@CC@|$CC|" < quietgcc.bash > $GOBIN/quietgcc
chmod +x $GOBIN/quietgcc
for i in lib9 libbio libmach cmd pkg libcgo cmd/cgo cmd/ebnflint cmd/godoc cmd/gofmt