Use lld (faster) linker for linux builds

This commit is contained in:
w1nst0n 2021-10-02 00:00:28 +02:00
commit a2acbbd039
No known key found for this signature in database
GPG key ID: 34D27465928A0A1D
2 changed files with 7 additions and 4 deletions

View file

@ -6,4 +6,7 @@ ar = "/usr/bin/x86_64-w64-mingw32-ar"
linker = "/usr/bin/i686-w64-mingw32-gcc"
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
rustflags = ["-C", "target-feature=+crt-static"]
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]

View file

@ -12,7 +12,7 @@ i686-pc-windows-gnu:
stage: build
before_script:
- apt update -yqq && apt install -yqq mingw-w64
- apt update -yqq && apt install -yqq mingw-w64 lld
- rustup target add i686-pc-windows-gnu
script:
@ -27,7 +27,7 @@ x86_64-pc-windows-gnu:
stage: build
before_script:
- apt update -yqq && apt install -yqq mingw-w64
- apt update -yqq && apt install -yqq mingw-w64 lld
- rustup target add x86_64-pc-windows-gnu
script:
@ -44,7 +44,7 @@ x86_64-unknown-linux-gnu:
stage: build
before_script:
- apt update -yqq && apt install -yqq libxkbcommon-dev
- apt update -yqq && apt install -yqq libxkbcommon-dev lld
script:
- cargo build --features glow --release --target x86_64-unknown-linux-gnu