Use mold for linking

This commit is contained in:
Daan Boerlage 2023-04-06 16:29:46 +02:00
parent add0bcf873
commit 9dbd783088
Signed by: daan
GPG key ID: FCE070E1E4956606
2 changed files with 8 additions and 1 deletions

7
.cargo/config.toml Normal file
View file

@ -0,0 +1,7 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
[target.x86_64-unknown-linux-musl]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]

View file

@ -2,7 +2,7 @@ pipeline:
build: build:
image: rust:1-alpine image: rust:1-alpine
commands: commands:
- apk add clang build-base protoc - apk add clang build-base protoc mold
- cargo build --release - cargo build --release
containerize: containerize:
image: docker:23-dind image: docker:23-dind