aboutsummaryrefslogtreecommitdiff
path: root/go/chromeos/go_elm
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2018-09-18 09:34:45 -0700
committerStephen Hines <srhines@google.com>2018-09-18 09:34:45 -0700
commit310ded5b2fa5acaf489da276a28eccbb78041e1e (patch)
tree34dfb28b62189e83f44c3f5ae8b5271e71d19dcc /go/chromeos/go_elm
parentec1dfabf71cfe08796ba80ae03f4857b2797f5f9 (diff)
parent6f7acfe655ed82355582cbd4f4130de9c25b22cb (diff)
downloadtoolchain-utils-310ded5b2fa5acaf489da276a28eccbb78041e1e.tar.gz
Merge remote-tracking branch 'aosp/mirror-chromium-master' into update_utils
Change-Id: Ia627b264f23935d8ae852e259c90c46377783abd
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 "$@"