We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5be080 commit 22535d8Copy full SHA for 22535d8
wireguard-go-rs/build-wireguard-go.sh
@@ -72,8 +72,15 @@ function build_unix {
72
73
74
pushd libwg
75
+ # TODO: There ought to be a simpler way to do this..
76
+ TAGS=()
77
+ platform="$(uname -s)";
78
+ case "$platform" in
79
+ Linux*) TAGS+="--tags daita";;
80
+ esac
81
+
82
# TODO: pass OUT_DIR as an arg maybe? instead of relying on cargo setting it globally?
- go build -v -tags daita -o "$OUT_DIR"/libwg.a -buildmode c-archive
83
+ go build -v "${TAGS[@]}" -o ./libwg.a -buildmode c-archive
84
popd
85
}
86
wireguard-go-rs/build/lib/x86_64-unknown-linux-gnu/libwg.a
-8.62 MB
wireguard-go-rs/build/lib/x86_64-unknown-linux-gnu/libwg.h
0 commit comments