summaryrefslogtreecommitdiffstats
path: root/scripts/makeDarwin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makeDarwin.sh')
-rwxr-xr-xscripts/makeDarwin.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/makeDarwin.sh b/scripts/makeDarwin.sh
new file mode 100755
index 0000000..638f58a
--- /dev/null
+++ b/scripts/makeDarwin.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+GOOS=darwin
+GOARCH=amd64
+CGO_ENABLED=1
+MACOSX_DEPLOYMENT_TARGET=10.10.0
+CC=o64-clang
+CXX=o64-clang++
+
+export GOOS GOARCH CGO_ENABLED MACOSX_DEPLOYMENT_TARGET CC CXX
+go build -o gotop.darwin ./cmd/gotop