Last active
November 11, 2023 03:33
-
-
Save benesch/c49d8a7992a2575ab79acbb82db88c42 to your computer and use it in GitHub Desktop.
Cross-compiling Materialize for ARM on x64 Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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