tinygo/targets
Ayke van Laethem 611bca39ab
all: rename 'arm' to 'tinygo.arm' for Cortex-M
Let the standard library think that it is compiling for js/wasm.

The most correct way of supporting bare metal Cortex-M targets would be
using the 'arm' build tag and specifying no OS or an 'undefined' OS
(perhaps GOOS=noos?). However, there is no build tag for specifying no
OS at all, the closest possible is GOOS=js which makes very few
assumptions.

Sadly GOOS=js also makes some assumptions: it assumes to be running with
GOARCH=wasm. This would not be such a problem, just add js, wasm and arm
as build tags. However, having two GOARCH build tags leads to an error
in internal/cpu: it defines variables for both architectures which then
conflict.

To work around these problems, the 'arm' target has been renamed to
'tinygo.arm', which should work around these problems. In the future, a
GOOS=noos (or similar) should be added which can work with any
architecture and doesn't implement OS-specific stuff.
2018-11-09 11:50:38 +01:00
..
arduino.json avr: make linker script generic 2018-09-23 20:50:12 +02:00
arm.ld nrf: add micro:bit board 2018-10-06 13:04:14 +02:00
avr.ld avr: make linker script generic 2018-09-23 20:50:12 +02:00
avr.S avr: fix default handler in interrupt vector 2018-09-24 13:03:21 +02:00
bluepill.json all: rename 'arm' to 'tinygo.arm' for Cortex-M 2018-11-09 11:50:38 +01:00
cortex-m.s all: add emulation support for Cortex-M3 with QEMU 2018-10-08 17:07:19 +02:00
lm3s6965.ld all: add emulation support for Cortex-M3 with QEMU 2018-10-08 17:07:19 +02:00
microbit.json all: rename 'arm' to 'tinygo.arm' for Cortex-M 2018-11-09 11:50:38 +01:00
nrf51.ld nrf: add micro:bit board 2018-10-06 13:04:14 +02:00
nrf52.ld all: move generic ARM bits into separate files 2018-09-22 01:44:47 +02:00
nrf52840-mdk.json all: rename 'arm' to 'tinygo.arm' for Cortex-M 2018-11-09 11:50:38 +01:00
nrf52840.ld nrf: add nrf52840-mdk board 2018-10-18 15:07:06 +02:00
pca10040.json all: rename 'arm' to 'tinygo.arm' for Cortex-M 2018-11-09 11:50:38 +01:00
qemu.json all: rename 'arm' to 'tinygo.arm' for Cortex-M 2018-11-09 11:50:38 +01:00
stm32.ld stm32: initial support 2018-09-22 01:51:44 +02:00
wasm.json wasm: allow all undefined symbols 2018-10-30 15:59:29 +01:00