aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader/loader.go
diff options
context:
space:
mode:
authorJosé Carlos Chávez <[email protected]>2022-06-07 00:39:12 +0200
committerRon Evans <[email protected]>2022-06-11 12:11:08 +0200
commita07287d3c670b516685c58bb7e7be159253b5372 (patch)
treec68e8b30645fe47e9673e98571bf008bc3886265 /loader/loader.go
parent1b2e764835fb5278de144caf059cb094bad4db23 (diff)
downloadtinygo-a07287d3c670b516685c58bb7e7be159253b5372.tar.gz
tinygo-a07287d3c670b516685c58bb7e7be159253b5372.zip
fix: fixes tinygo test ./... syntax.
Diffstat (limited to 'loader/loader.go')
-rw-r--r--loader/loader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.go b/loader/loader.go
index f02219425..88eb15dac 100644
--- a/loader/loader.go
+++ b/loader/loader.go
@@ -104,7 +104,7 @@ type EmbedFile struct {
// Load loads the given package with all dependencies (including the runtime
// package). Call .Parse() afterwards to parse all Go files (including CGo
// processing, if necessary).
-func Load(config *compileopts.Config, inputPkgs []string, clangHeaders string, typeChecker types.Config) (*Program, error) {
+func Load(config *compileopts.Config, inputPkg string, clangHeaders string, typeChecker types.Config) (*Program, error) {
goroot, err := GetCachedGoroot(config)
if err != nil {
return nil, err
@@ -133,7 +133,7 @@ func Load(config *compileopts.Config, inputPkgs []string, clangHeaders string, t
if config.TestConfig.CompileTestBinary {
extraArgs = append(extraArgs, "-test")
}
- cmd, err := List(config, extraArgs, inputPkgs)
+ cmd, err := List(config, extraArgs, []string{inputPkg})
if err != nil {
return nil, err
}