From 95c9d18b69a702c7f9ca34b6a206380fdd7f8b12 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sun, 27 Mar 2022 22:00:25 +0200 Subject: [PATCH] cross link config should be in user settings, not in repo --- .cargo/config | 7 ------- docs/developer.md | 12 ++++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config deleted file mode 100644 index 4391721d..00000000 --- a/.cargo/config +++ /dev/null @@ -1,7 +0,0 @@ -[target.x86_64-apple-darwin] -linker = "x86_64-apple-darwin20.4-clang" -ar = "x86_64-apple-darwin20.4-ar" - -[target.aarch64-apple-darwin] -linker = "aarch64-apple-darwin20.4-clang" -ar = "aarch64-apple-darwin20.4-ar" diff --git a/docs/developer.md b/docs/developer.md index a6e6bded..749a3e95 100644 --- a/docs/developer.md +++ b/docs/developer.md @@ -41,6 +41,18 @@ rustup target add aarch64-apple-darwin rustup target add x86_64-apple-darwin ``` +Add linker and ar settings to `~/.cargo/config`: + +```Bash +[target.x86_64-apple-darwin] +linker = "x86_64-apple-darwin20.4-clang" +ar = "x86_64-apple-darwin20.4-ar" + +[target.aarch64-apple-darwin] +linker = "aarch64-apple-darwin20.4-clang" +ar = "aarch64-apple-darwin20.4-ar" +``` + Follow this guide: [rust-cross-compile-linux-to-macos](https://wapl.es/rust/2019/02/17/rust-cross-compile-linux-to-macos.html) Or setup [osxcross](https://github.com/tpoechtrager/osxcross) correctly.