diff options
author | Ayke van Laethem <[email protected]> | 2019-03-22 21:53:44 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-03-23 22:58:26 +0100 |
commit | a2d0f79be31b0122eeb237115aea4de6cb0c1c60 (patch) | |
tree | 1bf298754571d5e95a475c6a206cb574ed6ac634 /targets/cortex-m.json | |
parent | 792274e86f67810a79fcab06b5eb6ee0689f8251 (diff) | |
download | tinygo-a2d0f79be31b0122eeb237115aea4de6cb0c1c60.tar.gz tinygo-a2d0f79be31b0122eeb237115aea4de6cb0c1c60.zip |
all: pretend to be linux/arm in baremetal targets
So far, we've pretended to be js/wasm in baremetal targets to make the
stdlib happy. Unfortunately, this has various problems because
syscall/js (a dependency of many stdlib packages) thinks it can do JS
calls, and emulating them gets quite hard with all changes to the
syscall/js packages in Go 1.12.
This commit does a few things:
* It lets baremetal targets pretend to be linux/arm instead of
js/wasm.
* It lets the loader only select particular packages from the src
overlay, instead of inserting them just before GOROOT. This makes it
possible to pick which packages to overlay for a given target.
* It adds a baremetal-only syscall package that stubs out almost all
syscalls.
Diffstat (limited to 'targets/cortex-m.json')
-rw-r--r-- | targets/cortex-m.json | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/targets/cortex-m.json b/targets/cortex-m.json index cc09e0d67..406239bb0 100644 --- a/targets/cortex-m.json +++ b/targets/cortex-m.json @@ -1,7 +1,7 @@ { - "build-tags": ["tinygo.arm", "js", "wasm"], - "goos": "js", - "goarch": "wasm", + "build-tags": ["cortexm", "linux", "arm"], + "goos": "linux", + "goarch": "arm", "compiler": "clang-8", "gc": "marksweep", "linker": "arm-none-eabi-ld", |