Browse Source

Allow imports from GOROOT

pull/6/head
Ayke van Laethem 6 years ago
parent
commit
cad3e03f94
No known key found for this signature in database GPG Key ID: E97FF5335DFDFDED
  1. 2
      compiler.go

2
compiler.go

@ -8,6 +8,7 @@ import (
"go/token"
"go/types"
"os"
"runtime"
"strconv"
"strings"
@ -137,6 +138,7 @@ func (c *Compiler) Parse(mainPath string, buildTags []string) error {
GOARCH: tripleSplit[0],
GOOS: tripleSplit[2],
GOROOT: ".",
GOPATH: runtime.GOROOT(),
CgoEnabled: true,
UseAllFiles: false,
Compiler: "gc", // must be one of the recognized compilers

Loading…
Cancel
Save