Switch to prebuild winarm64 rust target

This commit is contained in:
BtbN 2024-08-21 01:44:12 +02:00
parent 3ad5c7beb2
commit 35cf21f1e1

View File

@ -23,9 +23,7 @@ ENV FFBUILD_TOOLCHAIN=aarch64-w64-mingw32 \
FFBUILD_RUST_TARGET=aarch64-pc-windows-gnullvm
RUN \
rustup default nightly && \
rustup +nightly component add rust-src && \
echo "[unstable]\nbuild-std = [\"core\", \"alloc\", \"std\", \"proc_macro\"]\n" > "$CARGO_HOME"/config.toml && \
rustup target add "$FFBUILD_RUST_TARGET" && \
echo "[target.$FFBUILD_RUST_TARGET]\nlinker = \"${FFBUILD_TOOLCHAIN}-clang\"\nar = \"${FFBUILD_TOOLCHAIN}-llvm-ar\"\n" >> "$CARGO_HOME"/config.toml
ADD toolchain.cmake /toolchain.cmake