Skip to content

Commit

Permalink
Fixed waf script for go.
Browse files Browse the repository at this point in the history
Moved 6g and 6l to "configure".
  • Loading branch information
0xfe committed Mar 19, 2011
1 parent 8b70334 commit 737f914
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions go/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ top = "."
out = "build"

def configure(ctx):
pass

def hello(ctx):
print("hello world")
ctx.env.GOC = "6g"
ctx.env.GOL = "6l"

def build(ctx):
go_compile = "6g ${SRC} -o ${TGT}"
go_link = "6l ${SRC} -o ${TGT}"
go_compile = "${GOC} -o ${TGT} ${SRC}"
go_link = "${GOL} -o ${TGT} ${SRC}"

ctx(rule=go_compile, source="hello.go", target="hello.6")
ctx(rule=go_link, source="hello.6", target="hello")

0 comments on commit 737f914

Please sign in to comment.