Skip to content

Commit

Permalink
update scripts/ndk-make.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Aug 29, 2024
1 parent 2376777 commit 8c7d1da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/ndk-make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ fi
ROOT_DIR="$(realpath $(dirname $(dirname "$0")))"
export RUSTFLAGS="-C link-args=-Wl,--build-id=none --remap-path-prefix=$HOME/.cargo= --remap-path-prefix=$ROOT_DIR="
export SOURCE_DATE_EPOCH=1
export CFLAGS="$CFLAGS -ffile-prefix-map=$ROOT_DIR="
# use always the same path to NDK:
export CARGO_TARGET_DIR=/tmp/arcanechat-build
# always use the same path to NDK:
rm -f /tmp/android-ndk-root
ln -s "$ANDROID_NDK_ROOT" /tmp/android-ndk-root
ANDROID_NDK_ROOT=/tmp/android-ndk-root
export CARGO_TARGET_DIR=/tmp/arcanechat-build

echo Setting CARGO_TARGET environment variables.

Expand Down

0 comments on commit 8c7d1da

Please sign in to comment.