mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
mips: fix big-endian (GOARCH=mips) support
I made an awkward mistake, mixing up GOOS and GOARCH. So here is a fix, with an associated test.
This commit is contained in:
committed by
Ron Evans
parent
83c98a23ce
commit
1ef1aa7862
@@ -177,6 +177,14 @@ func TestBuild(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
t.Run("MIPS big-endian", func(t *testing.T) {
|
||||
// Run a single test for GOARCH=mips to see whether it works at all.
|
||||
// Big-endian MIPS isn't fully supported yet, but simple examples
|
||||
// should work.
|
||||
t.Parallel()
|
||||
options := optionsFromOSARCH("linux/mips/softfloat", sema)
|
||||
runTest("alias.go", options, t, nil, nil)
|
||||
})
|
||||
t.Run("WebAssembly", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
runPlatTests(optionsFromTarget("wasm", sema), tests, t)
|
||||
|
||||
Reference in New Issue
Block a user