Add go with gccgo
This commit is contained in:
parent
bac9b5e293
commit
39a8ce97fb
|
@ -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
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello, world!")
|
||||
}
|
Loading…
Reference in New Issue