# This file is used by all AArch64 Win64 builds

ac_add_options --target=aarch64-windows-mingw32

. $topsrcdir/build/win64-aarch64/mozconfig.vs-latest

if test `uname -s` = Linux; then

# Configure expects executables for check_prog, so set the relevant files
# as executable on the first evaluation of the mozconfig where they exist.
export UPX="${MOZ_FETCHES_DIR}/upx-3.95-win64/upx.exe"
if [ -f "${UPX}" ]; then
    chmod +x "${UPX}"
fi
mk_add_options "export PATH=${VC_PATH}/bin/hostx64/arm64:${PATH}"
mk_add_options "export WINEPATH=${VC_PATH}/bin/hostx64/x64"

unset VC_PATH

fi

pdbstr="${MOZ_FETCHES_DIR}/pdbstr/pdbstr.exe"
if [ -f "${pdbstr}" ]; then
    chmod +x "${pdbstr}"
fi
