aboutsummaryrefslogtreecommitdiffhomepage
path: root/target.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-02-05 20:13:39 +0100
committerRon Evans <[email protected]>2019-02-07 07:00:37 +0100
commit3cba36f2ba789a7680d9bef98acb5f84bdcfbdf8 (patch)
tree5c1a7d51f2deca2ffff923d42ac76ccc1979e48a /target.go
parent93d5269fefe118f3408032693d079942ac0d0476 (diff)
downloadtinygo-3cba36f2ba789a7680d9bef98acb5f84bdcfbdf8.tar.gz
tinygo-3cba36f2ba789a7680d9bef98acb5f84bdcfbdf8.zip
compiler: add syscalls for 64-bit arm
Diffstat (limited to 'target.go')
-rw-r--r--target.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/target.go b/target.go
index 141be0760..a85e6561d 100644
--- a/target.go
+++ b/target.go
@@ -224,10 +224,11 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) {
spec.GDB = "arm-linux-gnueabi-gdb"
spec.Emulator = []string{"qemu-arm", "-L", "/usr/arm-linux-gnueabi"}
}
- if goarch == "arm64" {
+ if goarch == "arm64" && goos == "linux" {
spec.Linker = "aarch64-linux-gnu-gcc"
spec.Objcopy = "aarch64-linux-gnu-objcopy"
spec.GDB = "aarch64-linux-gnu-gdb"
+ spec.Emulator = []string{"qemu-aarch64", "-L", "/usr/aarch64-linux-gnu"}
}
if goarch == "386" {
spec.CFlags = []string{"-m32"}