From 39a8ce97fb4e85acd538f0d35ababae5d16821e9 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 8 Jun 2015 20:59:09 -0700 Subject: [PATCH] Add go with gccgo --- Tuprules.tup | 4 ++++ src/golang_gccgo.go | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 src/golang_gccgo.go diff --git a/Tuprules.tup b/Tuprules.tup index e552166..2e65e78 100644 --- a/Tuprules.tup +++ b/Tuprules.tup @@ -5,8 +5,12 @@ NIMFLAGS += -d:ssl NIMFLAGS += -d:threads NIMFLAGS += --verbosity:0 +GOFLAGS += -g + !nim = |> nim c $(NIMFLAGS) -o:%o %f && rm -rf .nimcache |> +!gccgo = |> gccgo $(GOFLAGS) -o %o %f |> : foreach *.moon |> moonc -o ../bin/%B.lua %f && chmod u+x ../bin/%B.lua |> ../bin/%B.lua : foreach *.nim |> !nim |> ../bin/%B +: foreach *.go |> !gccgo |> ../bin/%B : foreach *.c |> gcc -o ../bin/%B %f |> ../bin/%B diff --git a/src/golang_gccgo.go b/src/golang_gccgo.go new file mode 100644 index 0000000..f7b60bd --- /dev/null +++ b/src/golang_gccgo.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello, world!") +}