diff options
author | Ayke van Laethem <[email protected]> | 2020-01-14 13:46:54 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2020-01-20 20:30:42 +0100 |
commit | 8f8232aada70f3f939f1d18cedad0d6cc3b4db31 (patch) | |
tree | 6e2d1a0eeea3b995d4d6dcb08b1b0cd3b74e3235 /main_test.go | |
parent | d5e11fa19b6b4ef53f2c5106c1c1c6d8e50358b3 (diff) | |
download | tinygo-8f8232aada70f3f939f1d18cedad0d6cc3b4db31.tar.gz tinygo-8f8232aada70f3f939f1d18cedad0d6cc3b4db31.zip |
compileopts: fix CGo when cross compiling
Use the cross compiling toolchains for compiling/linking. This fixes CGo
support, and therefore allows CGo to be used when cross compiling to
Linux on a different architecture.
This commit also removes some redundant testing code.
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/main_test.go b/main_test.go index 188f318e8..3287025fc 100644 --- a/main_test.go +++ b/main_test.go @@ -80,15 +80,8 @@ func runPlatTests(target string, matches []string, t *testing.T) { if path == filepath.Join("testdata", "gc.go") { continue } - case target == "": - // run all tests on host - case target == "cortex-m-qemu": - // all tests are supported default: - // cross-compilation of cgo is not yet supported - if path == filepath.Join("testdata", "cgo")+string(filepath.Separator) { - continue - } + // all tests are supported } t.Run(filepath.Base(path), func(t *testing.T) { |