aboutsummaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-10-18 10:02:34 +0000
committerAlex <alex@adnab.me>2023-10-18 10:02:34 +0000
commita5e8ffeb63a193e5b0e020e4c014687e57f85c23 (patch)
tree52351294b31581e0823bafa67b396af627088975 /.cargo
parentb53510c5b74bc8d52e25bcdb517b38fa60f67a67 (diff)
parentd3fffd30dcf66a9da2e466ae6274547b090313e2 (diff)
downloadgarage-a5e8ffeb63a193e5b0e020e4c014687e57f85c23.tar.gz
garage-a5e8ffeb63a193e5b0e020e4c014687e57f85c23.zip
Merge pull request 'use mold linker when invoking cargo manually (not in nix build scripts)' (#646) from mold-linker into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/646
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 00000000..d29d6c33
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,3 @@
+[target.x86_64-unknown-linux-gnu]
+linker = "clang"
+rustflags = ["-C", "link-arg=-fuse-ld=mold"]