Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 4033e8b

Browse files
authored
chore: Reduce compile time (#584)
1 parent 543072c commit 4033e8b

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.cargo/config.toml

+14
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,17 @@ git-fetch-with-cli = true
1010
[cargo-new]
1111
1212
name = "강동윤"
13+
14+
# NOTE: you must manually install https://github.com/michaeleisel/zld on mac. you can easily do this with the "brew" package manager:
15+
# `brew install michaeleisel/zld/zld`
16+
[target.x86_64-apple-darwin]
17+
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]
18+
19+
[target.aarch64-apple-darwin]
20+
rustflags = ["-C", "link-arg=-fuse-ld=/opt/homebrew/bin/zld", "-Zshare-generics=y"]
21+
22+
# Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'
23+
# In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.
24+
25+
[profile.dev]
26+
debug = 1

CONTRIBUTING.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
1. Clone stc.
66
2. Run `yarn` in the cloned directory.
7+
3. (mac only) Install zld
8+
9+
```sh
10+
brew install michaeleisel/zld/zld
11+
```
712

813
## Typical workflow
914

cspell.json

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"libstd",
4545
"libtest",
4646
"lvalue",
47+
"michaeleisel",
4748
"MIMALLOC",
4849
"multiresult",
4950
"nonminimal",

0 commit comments

Comments
 (0)