#!/bin/sh # SPDX-License-Identifier: Apache-2.0 # Cross-compile the host for the board's processor (aarch64 Linux, glibc 2.39 on the board's image). # Needs rustup's aarch64-unknown-linux-gnu target for the repository's pinned toolchain and the # aarch64-linux-gnu-gcc linker. set -e cd "$(dirname "$0")/.." rustup target add aarch64-unknown-linux-gnu CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc cargo build --release --target aarch64-unknown-linux-gnu ls -la "${CARGO_TARGET_DIR:-target}/aarch64-unknown-linux-gnu/release/wai-quantum-landscape-fpga"