Skip to content

Commit 4969c63

Browse files
committed
aarch gnu and musl
1 parent a43c0a5 commit 4969c63

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

docker/cargo-config.toml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
[target.x86_64-unknown-linux-gnu]
1+
[target.aarch64-unknown-linux-gnu]
22
linker = "clang"
33
rustflags = [
44
# faster linker
55
"-C", "link-arg=-fuse-ld=/usr/local/bin/mold",
6+
# potentially faster. https://github.com/aws/aws-graviton-getting-started/blob/main/rust.md
7+
"-C", "target-feature=+lse",
68
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
79
"-C", "target-cpu=native",
810
# tokio unstable is needed for tokio-console
@@ -13,7 +15,7 @@ rustflags = [
1315
"-Z", "threads=8",
1416
]
1517

16-
[target.aarch64-unknown-linux-gnu]
18+
[target.aarch64-unknown-linux-musl]
1719
linker = "clang"
1820
rustflags = [
1921
# faster linker
@@ -29,3 +31,18 @@ rustflags = [
2931
# parallel build frontend
3032
"-Z", "threads=8",
3133
]
34+
35+
[target.x86_64-unknown-linux-gnu]
36+
linker = "clang"
37+
rustflags = [
38+
# faster linker
39+
"-C", "link-arg=-fuse-ld=/usr/local/bin/mold",
40+
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
41+
"-C", "target-cpu=native",
42+
# tokio unstable is needed for tokio-console
43+
"--cfg", "tokio_unstable",
44+
# uuid unstable is needed for zerocopy deserialize
45+
"--cfg", "uuid_unstable",
46+
# parallel build frontend
47+
"-Z", "threads=8",
48+
]

0 commit comments

Comments
 (0)