1- [target .x86_64 -unknown-linux-gnu ]
1+ [target .aarch64 -unknown-linux-gnu ]
22linker = " clang"
33rustflags = [
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 ]
1719linker = " clang"
1820rustflags = [
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