Skip to content

Commit 22535d8

Browse files
Fix only add daita tag when building wireguard-go for Linux
1 parent d5be080 commit 22535d8

File tree

3 files changed

+8
-99
lines changed

3 files changed

+8
-99
lines changed

wireguard-go-rs/build-wireguard-go.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,15 @@ function build_unix {
7272

7373

7474
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+
7582
# TODO: pass OUT_DIR as an arg maybe? instead of relying on cargo setting it globally?
76-
go build -v -tags daita -o "$OUT_DIR"/libwg.a -buildmode c-archive
83+
go build -v "${TAGS[@]}" -o ./libwg.a -buildmode c-archive
7784
popd
7885
}
7986

Binary file not shown.

wireguard-go-rs/build/lib/x86_64-unknown-linux-gnu/libwg.h

-98
This file was deleted.

0 commit comments

Comments
 (0)