diff options
Diffstat (limited to 'go/android/go_marlin')
-rwxr-xr-x | go/android/go_marlin | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/go/android/go_marlin b/go/android/go_marlin new file mode 100755 index 00000000..bfb564f9 --- /dev/null +++ b/go/android/go_marlin @@ -0,0 +1,11 @@ +#!/bin/bash + +# Invoke the Go cross compiler for marlin. +# Uses ../go_target to add PIE flags. +# +# This is just an example for an arm64 device. + +GOOS="android" GOARCH="arm64" CGO_ENABLED="1" \ + CC="aarch64-linux-android-clang" \ + CXX="aarch64-linux-android-clang++" \ + exec go_target "$@" |