diff options
author | Ayke van Laethem <[email protected]> | 2020-10-29 17:39:11 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-11-12 21:27:27 +0100 |
commit | 335fb71d2ff561fb02bf4d3dd16588b07a76abe6 (patch) | |
tree | 8a935c6d4adba5661d4c4b9dca137987d593be61 /targets | |
parent | 5866a47e77e2cecb794267fe2e0505187b7a31ca (diff) | |
download | tinygo-335fb71d2ff561fb02bf4d3dd16588b07a76abe6.tar.gz tinygo-335fb71d2ff561fb02bf4d3dd16588b07a76abe6.zip |
reflect: add support for DeepEqual
The implementation has been mostly copied from the Go reference
implementation with some small changes to fit TinyGo.
Source: https://github.com/golang/go/blob/77a11c05d6a6f766c75f804ea9b8796f9a9f85a3/src/reflect/deepequal.go
In addition, this commit also contains the following:
- A set of tests copied from the Go reflect package.
- An increased stack size for the riscv-qemu and hifive1-qemu targets
(because they otherwise fail to run the tests). Because these
targets are only used for testing, this seems fine to me.
Diffstat (limited to 'targets')
-rw-r--r-- | targets/hifive1-qemu.json | 1 | ||||
-rw-r--r-- | targets/riscv-qemu.json | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/targets/hifive1-qemu.json b/targets/hifive1-qemu.json index 60fe27a4d..115189438 100644 --- a/targets/hifive1-qemu.json +++ b/targets/hifive1-qemu.json @@ -2,6 +2,7 @@ "inherits": ["fe310"], "build-tags": ["hifive1b", "qemu"], "serial": "uart", + "default-stack-size": 4096, "linkerscript": "targets/hifive1-qemu.ld", "emulator": ["qemu-system-riscv32", "-machine", "sifive_e", "-nographic", "-kernel"] } diff --git a/targets/riscv-qemu.json b/targets/riscv-qemu.json index 0af2ef874..a8805dfd6 100644 --- a/targets/riscv-qemu.json +++ b/targets/riscv-qemu.json @@ -2,6 +2,7 @@ "inherits": ["riscv32"], "features": "+a,+c,+m,-relax,-save-restore", "build-tags": ["virt", "qemu"], + "default-stack-size": 4096, "linkerscript": "targets/riscv-qemu.ld", "emulator": ["qemu-system-riscv32", "-machine", "virt", "-nographic", "-bios", "none", "-kernel"] } |