ring/mk/package.sh
Alexander Ovchinnikov ceb5b90f6e Enable building and running on Windows ARM64
I agree to license my contributions to each file under the terms given at the top of each file I changed.

Co-authored-by: Marc-André Moreau <marcandre.moreau@gmail.com>
2021-08-16 12:28:42 -07:00

16 lines
437 B
Bash

# This only works on Windows, using MinGW.
set -eux -o pipefail
IFS=$'\n\t'
# Make sure the current tree isn't dirty.
# https://stackoverflow.com/a/5737794
if [[ $(git status --porcelain | wc -c) -ne 0 ]]; then
echo Repository is dirty.
exit 1
fi
cargo clean --target-dir=target/pregenerate_asm
RING_PREGENERATE_ASM=1 CC_AARCH64_PC_WINDOWS_MSVC=clang \
cargo build --target-dir=target/pregenerate_asm
cargo package --allow-dirty