diff --git a/.cargo/config.toml b/.cargo/config.toml index cefa8528..a8802e8d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,6 +2,22 @@ linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=lld"] +[target.aarch64-apple-darwin] +linker = "aarch64-apple-darwin-clang" +rustflags = [ + "-C", "link-arg=-fuse-ld=lld", + "-C", "link-arg=-isysroot", + "-C", "link-arg=/home/oiupoyt/.local/share/MacOSX11.3.sdk", +] + +[target.x86_64-apple-darwin] +linker = "x86_64-apple-darwin-clang" +rustflags = [ + "-C", "link-arg=-fuse-ld=lld", + "-C", "link-arg=-isysroot", + "-C", "link-arg=/home/oiupoyt/.local/share/MacOSX11.3.sdk", +] + # Linux and Macos by default have 8MB of stack storage. # Windows has 1MB, it isn't enough, so it's changed to 8MB also. [target.x86_64-pc-windows-msvc]