Use mold linker for faster compilation

This commit is contained in:
Olivier 'reivilibre' 2022-03-20 12:24:06 +00:00
parent 4f85aebd38
commit a907817831
3 changed files with 8 additions and 0 deletions

6
.cargo/config.toml Normal file
View File

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

View File

@ -9,6 +9,7 @@ pipeline:
event: [push, pull_request] event: [push, pull_request]
image: rust:1.59.0-slim image: rust:1.59.0-slim
commands: commands:
- rm -r .cargo
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential
- cargo install sqlx-cli --features sqlite - cargo install sqlx-cli --features sqlite
- cd quickpeep && bash dev_db.sh && cd .. - cd quickpeep && bash dev_db.sh && cd ..

View File

@ -17,6 +17,7 @@ pipeline:
image: "rust:1.59.0" image: "rust:1.59.0"
commands: commands:
- rm -r .cargo
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential
- cargo install sqlx-cli --features sqlite - cargo install sqlx-cli --features sqlite
- "qualsuff=`echo -$WOODPECKER_TAG-$WOODPECKER_ARCH | sed s%/%-%`" - "qualsuff=`echo -$WOODPECKER_TAG-$WOODPECKER_ARCH | sed s%/%-%`"