Skip to content

Commit 2c76917

Browse files
committed
fix: replace zld to lld for macos
1 parent a0e16c5 commit 2c76917

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.cargo/config.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@
77
linker = "clang"
88
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
99

10-
# NOTE: you must manually install https://github.com/michaeleisel/zld on mac. you can easily do this with the "brew" package manager:
11-
# `brew install michaeleisel/zld/zld`
10+
# NOTE: you must install [Mach-O LLD Port](https://lld.llvm.org/MachO/index.html) on mac. you can easily do this by installing llvm which includes lld with the "brew" package manager:
11+
# `brew install llvm`
1212
[target.x86_64-apple-darwin]
13-
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]
13+
rustflags = [
14+
"-C",
15+
"link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
16+
"-Zshare-generics=y",
17+
]
1418

1519
[target.aarch64-apple-darwin]
16-
rustflags = ["-C", "link-arg=-fuse-ld=/opt/homebrew/bin/zld", "-Zshare-generics=y"]
20+
rustflags = [
21+
"-C",
22+
"link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
23+
"-Zshare-generics=y",
24+
]
1725

1826
[target.x86_64-pc-windows-msvc]
1927
linker = "rust-lld.exe"

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shu"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "High-dimensional metabolic maps."

0 commit comments

Comments
 (0)