mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
main: move target specification into a separate package
This commit is contained in:
committed by
Ron Evans
parent
dff6e6566d
commit
e7cf75030c
+2
-1
@@ -14,6 +14,7 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/tinygo-org/tinygo/compileopts"
|
||||
"github.com/tinygo-org/tinygo/loader"
|
||||
)
|
||||
|
||||
@@ -142,7 +143,7 @@ func runTest(path, tmpdir string, target string, t *testing.T) {
|
||||
if target == "" {
|
||||
cmd = exec.Command(binary)
|
||||
} else {
|
||||
spec, err := LoadTarget(target)
|
||||
spec, err := compileopts.LoadTarget(target)
|
||||
if err != nil {
|
||||
t.Fatal("failed to load target spec:", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user