diff --git a/.cargo/config.toml b/.cargo/config.toml index c2b6726daddbf..efe8ee0fe7e66 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -26,6 +26,7 @@ x = "run --package aptos-cargo-cli --bin aptos-cargo-cli --" rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes"] [target.x86_64-unknown-linux-gnu] +linker = "clang" # We also need to include `-C linker-plugin-lto` for performance builds to take # full advantage of LTO, but we cannot add it here because it would affect dev # and release builds as well, so we add it via `--config 'build.rustflags=...'`