Add go with gccgo

This commit is contained in:
Christine Dodrill 2015-06-08 20:59:09 -07:00
parent bac9b5e293
commit 39a8ce97fb
2 changed files with 11 additions and 0 deletions

View File

@ -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

7
src/golang_gccgo.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}