Skip to content

Commit

Permalink
Update script target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kl committed Jan 16, 2025
1 parent 1155755 commit dcc671d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build-maybenot-ffi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ PATH_REMAPS=$(cargo run -q --bin remap-path-prefix)
mkdir -p $SCRIPT_DIR/build/libdest
pushd wireguard-go-rs/libwg/wireguard-go/maybenot
export RUSTFLAGS="-C metadata=maybenot-ffi $PATH_REMAPS"
cargo build --target-dir $SCRIPT_DIR/cargo-target/target --release --target aarch64-linux-android
cp $SCRIPT_DIR/cargo-target/target/aarch64-linux-android/release/libmaybenot_ffi.a $SCRIPT_DIR/build/libdest/libmaybenot.a
if [ "$IS_USING_CONTAINER_SCRIPT" = "false" ]; then
TARGET_DIR="$SCRIPT_DIR/target"
else
TARGET_DIR="$SCRIPT_DIR/cargo-target/target"
fi
cargo build --target-dir $TARGET_DIR --release --target aarch64-linux-android
cp $TARGET_DIR/aarch64-linux-android/release/libmaybenot_ffi.a $SCRIPT_DIR/build/libdest/libmaybenot.a
popd

echo "*******************"
Expand Down

0 comments on commit dcc671d

Please sign in to comment.