aboutsummaryrefslogtreecommitdiff
path: root/go/chromeos/go_elm
diff options
context:
space:
mode:
Diffstat (limited to 'go/chromeos/go_elm')
-rwxr-xr-xgo/chromeos/go_elm11
1 files changed, 11 insertions, 0 deletions
diff --git a/go/chromeos/go_elm b/go/chromeos/go_elm
new file mode 100755
index 00000000..a92d9c64
--- /dev/null
+++ b/go/chromeos/go_elm
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Invoke the Go cross compiler for elm.
+# Uses ../go_target to add PIE flags.
+#
+# This is just an example for an arm64 board.
+
+GOOS="linux" GOARCH="arm64" CGO_ENABLED="1" \
+ CC="aarch64-cros-linux-gnu-clang" \
+ CXX="aarch64-cros-linux-gnu-clang++" \
+ exec go_target "$@"