chore(build): add cargo config for mold linker

This commit is contained in:
Daniel Lundin 2024-12-15 22:12:59 +01:00
parent 35aeb1a72c
commit 4aff939cb1
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -1,2 +1,10 @@
[alias]
xtask = "run --package xtask --quiet --"
[profile.dev]
debug = 0
strip = "debuginfo"
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold", "-C", "target-cpu=native"]