From ed897ebf551146ab0e05cca9b7ecd81f58656e0f Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 14 Nov 2023 15:33:31 -0800 Subject: [PATCH] apparently they don't merge --- docker/cargo-config.toml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docker/cargo-config.toml b/docker/cargo-config.toml index 35de4ad8..dfb671bd 100644 --- a/docker/cargo-config.toml +++ b/docker/cargo-config.toml @@ -1,7 +1,29 @@ [target.x86_64-unknown-linux-gnu] linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"] +rustflags = [ + # faster linker + "-C", "link-arg=-fuse-ld=/usr/local/bin/mold", + # potentially faster. https://github.com/aws/aws-graviton-getting-started/blob/main/rust.md + "-C", "target-feature=+lse", + # potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html + "-C", "target-cpu=native", + # tokio unstable is needed for tokio-console + "--cfg", "tokio_unstable", + # uuid unstable is needed for zerocopy deserialize + "--cfg", "uuid_unstable", +] [target.aarch64-unknown-linux-gnu] linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"] +rustflags = [ + # faster linker + "-C", "link-arg=-fuse-ld=/usr/local/bin/mold", + # potentially faster. https://github.com/aws/aws-graviton-getting-started/blob/main/rust.md + "-C", "target-feature=+lse", + # potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html + "-C", "target-cpu=native", + # tokio unstable is needed for tokio-console + "--cfg", "tokio_unstable", + # uuid unstable is needed for zerocopy deserialize + "--cfg", "uuid_unstable", +]