From fd45410c2432667e1a69c93d18bd9557e387ef42 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 18 Oct 2018 15:05:21 +0200 Subject: [PATCH] runtime: add proper arm arch --- src/runtime/arch_arm.go | 11 +++++++++++ src/runtime/arch_wasm.go | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/runtime/arch_arm.go diff --git a/src/runtime/arch_arm.go b/src/runtime/arch_arm.go new file mode 100644 index 00000000..1f15a5c5 --- /dev/null +++ b/src/runtime/arch_arm.go @@ -0,0 +1,11 @@ +// +build arm + +package runtime + +const GOARCH = "arm" + +// The length type used inside strings and slices. +type lenType uint32 + +// The bitness of the CPU (e.g. 8, 32, 64). +const TargetBits = 32 diff --git a/src/runtime/arch_wasm.go b/src/runtime/arch_wasm.go index 65af4370..e7eaaf29 100644 --- a/src/runtime/arch_wasm.go +++ b/src/runtime/arch_wasm.go @@ -1,4 +1,4 @@ -// +build wasm,!avr +// +build wasm,!arm,!avr package runtime