aboutsummaryrefslogtreecommitdiff
path: root/crossbuild.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-16 18:40:48 +0200
committerJakob Unterwurzacher2021-08-16 19:23:58 +0200
commitb2724070d95234a8cd281f275211e0f827a8bbe1 (patch)
tree0c4efc4714d0826ac99ec40c905a111c9f9c7015 /crossbuild.bash
parentad4b99170b9ad438909f5cba8c32109a18697a7a (diff)
reverse mode: implement -one-file-system
Fixes https://github.com/rfjakob/gocryptfs/issues/475
Diffstat (limited to 'crossbuild.bash')
-rwxr-xr-xcrossbuild.bash6
1 files changed, 2 insertions, 4 deletions
diff --git a/crossbuild.bash b/crossbuild.bash
index 0904d54..43bfd32 100755
--- a/crossbuild.bash
+++ b/crossbuild.bash
@@ -5,7 +5,8 @@
cd "$(dirname "$0")"
export GO111MODULE=on
-B="go build -tags without_openssl"
+# Discard resulting binary by writing to /dev/null
+B="go build -tags without_openssl -o /dev/null"
set -x
@@ -26,6 +27,3 @@ GOOS=darwin GOARCH=amd64 $B
if go tool dist list | grep ios/arm64 ; then
GOOS=darwin GOARCH=arm64 $B
fi
-
-# The cross-built binary is not useful on the compile host.
-rm gocryptfs