Skip to content

Instantly share code, notes, and snippets.

@benesch
Last active November 11, 2023 03:33
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benesch/c49d8a7992a2575ab79acbb82db88c42 to your computer and use it in GitHub Desktop.
Save benesch/c49d8a7992a2575ab79acbb82db88c42 to your computer and use it in GitHub Desktop.
Cross-compiling Materialize for ARM on x64 Ubuntu
sudo apt-get install -qy binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
export CMAKE_SYSTEM_NAME=Linux
export TARGET=aarch64-linux-gnu
export TARGET_AR=aarch64-linux-gnu-ar
export TARGET_CC=aarch64-linux-gnu-gcc
export TARGET_CXX=aarch64-linux-gnu-g++
export TARGET_RANLIB=aarch64-linux-gnu-ranlib
export TARGET_CPP=aarch64-linux-gnu-cpp
export TARGET_LD=aarch64-linux-gnu-ld
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=$TARGET_CC
cargo build --target aarch64-unknown-linux-gnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment