Skip to content

Commit 1bc89ab

Browse files
committed
Cargo build config
1 parent 43d2ec3 commit 1bc89ab

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.cargo/config.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[build]
2+
3+
[target.x86_64-unknown-linux-gnu]
4+
linker = "/usr/bin/x86_64-linux-gnu-gcc"
5+
rustflags = ["-C", "target-cpu=haswell"]
6+
7+
[target.x86_64-pc-windows-msvc]
8+
rustflags = ["-C", "target-cpu=haswell"]
9+
10+
[target.x86_64-apple-darwin]
11+
rustflags = ["-C", "target-cpu=skylake"]
12+
13+
[target.aarch64-apple-darwin]
14+
rustflags = ["-C", "target-cpu=native"]
15+
16+
[registries.crates-io]
17+
protocol = "sparse"

0 commit comments

Comments
 (0)