Skip to content

Commit

Permalink
Revert "Remove GIT_COMMIT_HASH to reduce binary size"
Browse files Browse the repository at this point in the history
This reverts commit c487ecd.
  • Loading branch information
DianQK committed May 4, 2023
1 parent c487ecd commit 9a198b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ruslin-data-uniffi/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

set -e

GIT_COMMIT_HASH=$(git rev-parse --verify HEAD | tr -d '\n')

# After upgrading to 1.71.0, switch to `sparse`.
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git

export RUSTFLAGS="--cfg uuid_unstable"
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$HOME/.cargo/=/.cargo/"
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$PWD/=/ruslin-data-uniffi/"
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$PWD/=/ruslin-data-uniffi/$GIT_COMMIT_HASH/"

# This workaround should be removed
# after the https://github.com/llvm/llvm-project/commit/95dcaef00379e893dabc61cf598fe51c9d03414e change is merged into the NDK
Expand Down

0 comments on commit 9a198b8

Please sign in to comment.