-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
66 lines (36 loc) · 1.5 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#goscons
goscons is a set of SCons tools for building Go code.
goscons supports Cgo.
goscons includes a helper application based on the one from sconsgo,
which can be found at:
https://launchpad.net/sconsgo
##Installation
To get started, do the following:
1. Set GOROOT in your environment to point to your Go distribution.
2. Add $GOROOT/bin to your PATH.
3. On Mac OS X, it is also necessary to set GOARCH.
4. Run scons to install goscons-helper to $GOROOT/bin.
5. Run ./test.sh to do some tests.
6. Set PYTHONPATH in your environment to point to the top-level
goscons directory.
7. Look in test.sh and the prj[12345] directories for some examples.
If PYTHONPATH is set, the following SConstruct should work to build a
simple Go project:
from goscons import GoEnvironment
env = GoEnvironment()
env.GoPackages('src/pkg')
env.GoCommands('src/cmd')
##gccgo
Work was started on support for gccgo, but the compiler is missing
some features that are needed to support dependency resolution and
automatic construction of the link commands.
http://groups.google.com/group/golang-nuts/browse_thread/thread/0ef96b1e6bbb1c60
##Bugs
Please report bugs to Albert Strasheim <[email protected]>.
##About the tests
The tests assume you have the 386 tools available, so if you are on
amd64, go to $GOROOT/src and run:
GOARCH=386 ./make.bash
You might need to install 32-bit versions of packages like glibc-devel
for this to work, so try something like:
yum install libgcc.i686 glibc-devel.i686 libuuid-devel.i686