Use mold for linking
This commit is contained in:
parent
add0bcf873
commit
9dbd783088
2 changed files with 8 additions and 1 deletions
7
.cargo/config.toml
Normal file
7
.cargo/config.toml
Normal 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"]
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue