diff options
author | Ayke van Laethem <[email protected]> | 2019-10-31 15:39:01 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-11-04 11:45:35 +0100 |
commit | e7cf75030c6fe8a21ace88be690241f7b16f998d (patch) | |
tree | e891d0fd9e635e6060d9330b23530418fe281598 /main_test.go | |
parent | dff6e6566db6e42ade2b5007796de8474535c410 (diff) | |
download | tinygo-e7cf75030c6fe8a21ace88be690241f7b16f998d.tar.gz tinygo-e7cf75030c6fe8a21ace88be690241f7b16f998d.zip |
main: move target specification into a separate package
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main_test.go b/main_test.go index f0a574bfe..02f183637 100644 --- a/main_test.go +++ b/main_test.go @@ -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) } |