mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
Allow imports from GOROOT
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user