diff options
author | Ayke van Laethem <[email protected]> | 2019-02-05 20:13:39 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-02-07 07:00:37 +0100 |
commit | 3cba36f2ba789a7680d9bef98acb5f84bdcfbdf8 (patch) | |
tree | 5c1a7d51f2deca2ffff923d42ac76ccc1979e48a /target.go | |
parent | 93d5269fefe118f3408032693d079942ac0d0476 (diff) | |
download | tinygo-3cba36f2ba789a7680d9bef98acb5f84bdcfbdf8.tar.gz tinygo-3cba36f2ba789a7680d9bef98acb5f84bdcfbdf8.zip |
compiler: add syscalls for 64-bit arm
Diffstat (limited to 'target.go')
-rw-r--r-- | target.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"} |