Alex Brainman
37dca9d417
make.bash: remove old bash version of gotest on Windows
...
The file is called gotest.exe now.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4444090
2011-05-04 11:16:55 +10:00
Russ Cox
eedfc445a3
build: diagnose Ubuntu's buggy copy of gold
...
R=iant, dsymonds
CC=golang-dev
https://golang.org/cl/4300041
2011-03-18 18:23:00 -04:00
Dave Cheney
432b4f309b
build: convert src/cmd to use make directly and simplify src/make.bash
...
R=adg, bsiegert, rsc
CC=golang-dev
https://golang.org/cl/4221047
2011-03-01 09:20:32 +11:00
Dave Cheney
a1d95deaaa
build: remove unused nacl conditional from make.bash
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4217042
2011-02-24 15:56:53 +11:00
Russ Cox
d9f1ddbee1
make.bash: stricter selinux test
...
SELinux can be installed but not turned on.
Don't complain unless it is actually turned on.
https://bugzilla.redhat.com/show_bug.cgi?id=652987#c20
R=agl
CC=golang-dev
https://golang.org/cl/3979044
2011-01-25 10:19:39 -05:00
Russ Cox
3a2ba994b6
build: add a few missing --no-print-directory
...
Reported by W. Michael Petullo <mike@flyn.org>
Fixes #1269 .
R=r, r2
CC=golang-dev
https://golang.org/cl/3618041
2010-12-13 15:50:57 -05:00
Russ Cox
5a8f2ba727
fix build: more libcgo references
...
R=r
CC=golang-dev
https://golang.org/cl/3448043
2010-12-08 14:36:45 -05:00
Andrew Gerrand
6e87a0abc9
build: only print "You need to add foo to PATH" when needed
...
Fixes #1223 .
R=bradfitz
CC=golang-dev
https://golang.org/cl/2701041
2010-10-25 16:38:48 +11:00
Russ Cox
5bf658cc8f
build: create bin and pkg directories as needed; drop from hg
...
R=dsymonds, r
CC=golang-dev
https://golang.org/cl/2050043
2010-09-02 14:20:02 -04:00
Christian Himpel
5c603dbb75
build: remove unnecessary references to GOBIN and GOROOT
...
All scripts and makefiles assume that GOBIN is correctly set
in PATH.
R=rsc
CC=golang-dev
https://golang.org/cl/2043041
2010-08-30 15:40:56 -04:00
Russ Cox
15f336b675
build: let pkg/Makefile coordinate building of Go commands
...
Commands written in Go depend on Go packages, so they
cannot be built by src/cmd/make.bash. They have been
built by src/make.bash after all the packages are done, but
we want to be able to use cgo (written in Go) during the build
of package net. To make this possible, build the commands
from src/pkg/Makefile instead of src/make.bash, so that they
are included in the package dependency analysis.
R=r
CC=golang-dev
https://golang.org/cl/1972046
2010-08-25 17:54:10 -04:00
Russ Cox
e3034adfc2
build: fix build again - not sure where the " went. sigh.
...
R=r
CC=golang-dev
https://golang.org/cl/2024043
2010-08-24 20:43:31 -04:00
Russ Cox
aafe474ec9
build: $GOBIN defaults to $GOROOT/bin
...
R=r
CC=golang-dev
https://golang.org/cl/1982049
2010-08-24 20:00:33 -04:00
Russ Cox
da392d9136
build: no required environment variables
...
R=adg, r, PeterGo
CC=golang-dev
https://golang.org/cl/1942044
2010-08-18 10:08:49 -04:00
Ian Lance Taylor
84f67eb8e6
Build libcgo.so with $(CC), not the gcc on PATH.
...
Change make.bash to make sure that $(CC) is defined to match
the compiler used to build the tools.
R=rsc
CC=golang-dev
https://golang.org/cl/1853041
2010-07-15 14:15:39 -07:00
Christopher Wedgwood
cffdb1e830
build; allow MAKEFLAGS to be set outside the build scripts
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/1231041
2010-05-15 10:08:29 -07:00
Russ Cox
69fd2a4ab7
build script tweaks
...
factor out environment variable checks.
infer $GOROOT etc during build if not set.
it's still necessary to set them for yourself
to use the standard Makefiles.
when running all.bash, don't recompile all the
go packages in run.bash, since make.bash already did.
R=r
CC=golang-dev
https://golang.org/cl/609042
2010-03-31 19:48:33 -07:00
Russ Cox
3e4e4ec704
goinstall: an experiment in (external) package installation
...
R=adg, r
CC=cw, golang-dev
https://golang.org/cl/224043
2010-03-04 17:04:50 -08:00
Russ Cox
c2cb0d70d5
arm: toss make-arm.bash
...
R=kaib
CC=golang-dev
https://golang.org/cl/199094
2010-02-03 20:46:37 -08:00
Devon H. O'Dell
857d4cf1a9
Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/src
...
This change removes the necessity to have GOBIN in $PATH,
and also doesn't assume that the build is being run from
$GOROOT/src. This is a minimal set of necessary changes
to get Go to build happily from the FreeBSD ports
collection.
R=rsc
CC=golang-dev
https://golang.org/cl/171044
2009-12-11 15:14:09 -08:00
Russ Cox
609eeee817
make Native Client support build again,
...
add README explaining how to try the
web demos.
Fixes #339 .
R=r
CC=barry.d.silverman, bss, vadim
https://golang.org/cl/165057
2009-12-04 10:11:32 -08:00
Hector Chu
cd9d72ba9e
Ports of lib9, libbio and libmach to Windows.
...
R=rsc
https://golang.org/cl/157159
2009-11-30 11:53:11 -08:00
Rob Pike
a0c55432f3
fix weird all.bash failures by running deps.bash before make clean runs in pkg directory.
...
before this change, if pkg/Make.deps is missing or broken, clean.bash fails and the build dies
but not until much later.
add freebsd to error message about valid values of $GOOS
TODO: would be nice if this process exited when an error occurred. subshells make it hard
R=rsc
CC=golang-dev
https://golang.org/cl/160065
2009-11-24 21:07:05 -08:00
Russ Cox
6c827cb412
make.bash: clear CDPATH to avoid output from cd
...
Fixes #306 .
R=r, r1
https://golang.org/cl/160060
2009-11-24 16:01:35 -08:00
Sergio Luis O. B. Correia
6fc820729e
go: makes it build for the case $GOROOT has whitespaces
...
the bash scripts and makefiles for building go didn't take into account
the fact $GOROOT / $GOBIN could both be directories containing whitespaces,
and was not possible to build it in such a situation.
this commit adjusts the various makefiles/scripts to make it aware of that
possibility, and now it builds successfully when using a path with whitespaces
as well.
Fixes #115 .
R=rsc, dsymonds1
https://golang.org/cl/157067
2009-11-23 17:32:51 -08:00
Russ Cox
69039e5a5a
build Make.deps during make.bash instead
...
of keeping a checked-in copy. doesn't
slow down make.bash appreciably.
R=r
https://golang.org/cl/156099
2009-11-19 16:27:13 -08:00
Devon H. O'Dell
553be8427e
Build changes to support work on the BSDs.
...
This does still contain some FreeBSD-specific bits, but
it's a pain to do partial diffs.
R=rsc
https://golang.org/cl/152138
2009-11-14 15:29:09 -08:00
Adam Langley
2643f742a5
make.bash: detect and warn about SELinux policy that crashes us.
...
The default SELinux policy on Fedora 12 (at least) disallows stack
pages to be +x. This causes all binaries written by 6g/6l to segfault
immedately. The 'true' way to fix this issue is to mark binaries with
the correct type. However, that assumes that 6l is going to detect
SELinux, figure out the correct type for the current distribution and
set the type (without libselinux).
For now we'll warn users and point them towards the way to enable
execstack for the whole system.
http://code.google.com/p/go/issues/detail?id=47
R=rsc
CC=golang-dev
http://codereview.prom.corp.google.com/1026041
2009-11-11 15:02:15 -08:00
Adam Langley
9188b1f000
Revert make.bash which slipped into the previous revision.
...
R=rsc
http://codereview.prom.corp.google.com/1024051
2009-11-11 13:30:47 -08:00
Adam Langley
1941855730
Reland a112249da741, this time with missing file.
2009-11-11 13:21:37 -08:00
Russ Cox
9ff712ecd1
make.bash: check $PATH indirectly via which quietgcc
...
R=agl1
CC=golang-dev
https://golang.org/cl/152056
2009-11-10 19:20:34 -08:00
Russ Cox
2d70d60392
sanity check environment variables better.
...
Fixes #12 .
R=agl1
CC=golang-dev
https://golang.org/cl/152055
2009-11-10 19:12:22 -08:00
Russ Cox
d6c388616b
test for invalid $GOBIN setting before trying to build
...
R=r
CC=golang-dev
https://golang.org/cl/153049
2009-11-10 18:00:48 -08:00
Russ Cox
1329012a23
new command hgpatch, for use by codereview extension
...
R=r
http://go/go-review/1018059
2009-11-05 09:27:19 -08:00
Rob Pike
796e29ebfc
add goyacc to the build
...
R=rsc
CC=go-dev
http://go/go-review/1018034
2009-11-03 22:48:48 -08:00
Ian Lance Taylor
fab7ae15ee
Use the environment variable CC as the bootstrap compiler used
...
to build 6g, 6l, etc.
R=rsc
CC=go-dev
http://go/go-review/1018015
2009-11-01 16:13:37 -08:00
Russ Cox
219fb02042
fix build after Mercurial move.
...
various missing or incorrect files.
R=r
CC=go-dev
http://go/go-review/1014004
2009-10-22 10:59:27 -07:00
Russ Cox
f0bde7c51b
fix nacl build
...
R=r
DELTA=23 (5 added, 0 deleted, 18 changed)
OCL=35510
CL=35518
2009-10-09 11:15:19 -07:00
Russ Cox
133a158bd8
8c, 8l dynamic loading support.
...
better mach binaries.
cgo working on darwin+linux amd64+386.
eliminated context switches - pi is 30x faster.
add libcgo to build.
on snow leopard:
- non-cgo binaries work; all tests pass.
- cgo binaries work on amd64 but not 386.
R=r
DELTA=2031 (1316 added, 626 deleted, 89 changed)
OCL=35264
CL=35304
2009-10-03 10:37:12 -07:00
Rob Pike
00274a13cb
rename libmach_amd64 libmach
...
R=rsc
OCL=33273
CL=33276
2009-08-14 10:46:04 -07:00
Russ Cox
eda49f331f
new included Make.pkg for handwritten package makefiles.
...
gobuild is obsolete; don't build it (will delete eventually).
revised gotest for whole-package compilation.
R=r
DELTA=102 (68 added, 6 deleted, 28 changed)
OCL=33067
CL=33098
2009-08-12 13:18:46 -07:00
Phil Pennock
d6f89c69c4
Support use of $GOBINDIR to override $HOME/bin
...
R=r,gri,rsc
APPROVED=rsc
DELTA=53 (12 added, 6 deleted, 35 changed)
OCL=31822
CL=32282
2009-07-28 11:23:24 -07:00
Robert Griesemer
7b7b83ba1b
ebnflint command
...
- basic verification of EBNF grammars
- tested with (and has testcase for) go_spec.html
R=rsc
DELTA=150 (148 added, 0 deleted, 2 changed)
OCL=31481
CL=31517
2009-07-13 10:26:58 -07:00
Russ Cox
bede992dd3
set -e does not apply to ( ) blocks,
...
so implement the check manually.
sigh.
R=r
DELTA=17 (6 added, 0 deleted, 11 changed)
OCL=30606
CL=30612
2009-06-22 15:43:50 -07:00
Robert Griesemer
d8e4446d12
- install gofmt in src/cmd/gofmt
...
- remove some left-over files
R=rsc
DELTA=1465 (281 added, 1181 deleted, 3 changed)
OCL=30350
CL=30353
2009-06-16 12:03:32 -07:00
Robert Griesemer
d45442ed65
fix build
...
R=rsc
DELTA=5 (0 added, 1 deleted, 4 changed)
OCL=30343
CL=30343
2009-06-16 09:39:57 -07:00
Rob Pike
d90e7cbac6
mv src/lib to src/pkg
...
tests: all.bash passes, gobuild still works, godoc still works.
R=rsc
OCL=30096
CL=30102
2009-06-09 09:53:44 -07:00
Russ Cox
b7f0580274
move src/runtime -> src/lib/runtime;
...
hand-edited files.
R=r
DELTA=125 (77 added, 16 deleted, 32 changed)
OCL=30001
CL=30008
2009-06-06 22:04:50 -07:00
Russ Cox
7847056dfb
rewrite gobuild in go.
...
R=r
DELTA=1305 (704 added, 590 deleted, 11 changed)
OCL=27546
CL=27548
2009-04-16 00:18:11 -07:00
Russ Cox
5a863a4ece
convert lib to a Makefile,
...
mainly for "make bufio.install".
R=r
DELTA=144 (80 added, 62 deleted, 2 changed)
OCL=19760
CL=19799
2008-11-21 12:36:16 -08:00