chore: use lld linker by default

This commit is contained in:
Michael Aaron Murphy 2023-02-01 00:43:58 +01:00
parent d4c83c6de7
commit 0a267c027d
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
4 changed files with 8 additions and 4 deletions

View file

@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: install system dependencies
run: sudo apt-get update && sudo apt-get install cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config
run: sudo apt-get update && sudo apt-get install lld cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config
- uses: actions/checkout@v3
- name: install toolchain
run: rustup show
@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: install system dependencies
run: sudo apt-get update && sudo apt-get install cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config
run: sudo apt-get update && sudo apt-get install lld cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config
- uses: actions/checkout@v3
- name: install toolchain
run: rustup show

View file

@ -10,6 +10,7 @@ To compile, a stable Rust compiler and [just](https://github.com/casey/just) are
- cargo
- just
- lld
Some C libraries are also required for font support at the moment.

1
debian/control vendored
View file

@ -10,6 +10,7 @@ Build-Depends:
libexpat1-dev,
libfontconfig-dev,
libfreetype-dev,
lld,
pkg-config,
Standards-Version: 4.6.2
Homepage: https://github.com/pop-os/cosmic-settings

View file

@ -3,10 +3,12 @@ appid := 'com.system76.CosmicSettings'
x86-64-target := 'x86-64-v2'
linker := '-C link-arg=-fuse-ld=lld'
export RUSTFLAGS := if arch() == 'x86_64' {
'-C target-cpu=' + x86-64-target
linker + ' -C target-cpu=' + x86-64-target
} else {
''
linker
}
rootdir := ''