chore: use lld linker by default
This commit is contained in:
parent
d4c83c6de7
commit
0a267c027d
4 changed files with 8 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: install system dependencies
|
- 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
|
- uses: actions/checkout@v3
|
||||||
- name: install toolchain
|
- name: install toolchain
|
||||||
run: rustup show
|
run: rustup show
|
||||||
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: install system dependencies
|
- 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
|
- uses: actions/checkout@v3
|
||||||
- name: install toolchain
|
- name: install toolchain
|
||||||
run: rustup show
|
run: rustup show
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ To compile, a stable Rust compiler and [just](https://github.com/casey/just) are
|
||||||
|
|
||||||
- cargo
|
- cargo
|
||||||
- just
|
- just
|
||||||
|
- lld
|
||||||
|
|
||||||
Some C libraries are also required for font support at the moment.
|
Some C libraries are also required for font support at the moment.
|
||||||
|
|
||||||
|
|
|
||||||
1
debian/control
vendored
1
debian/control
vendored
|
|
@ -10,6 +10,7 @@ Build-Depends:
|
||||||
libexpat1-dev,
|
libexpat1-dev,
|
||||||
libfontconfig-dev,
|
libfontconfig-dev,
|
||||||
libfreetype-dev,
|
libfreetype-dev,
|
||||||
|
lld,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.6.2
|
||||||
Homepage: https://github.com/pop-os/cosmic-settings
|
Homepage: https://github.com/pop-os/cosmic-settings
|
||||||
|
|
|
||||||
6
justfile
6
justfile
|
|
@ -3,10 +3,12 @@ appid := 'com.system76.CosmicSettings'
|
||||||
|
|
||||||
x86-64-target := 'x86-64-v2'
|
x86-64-target := 'x86-64-v2'
|
||||||
|
|
||||||
|
linker := '-C link-arg=-fuse-ld=lld'
|
||||||
|
|
||||||
export RUSTFLAGS := if arch() == 'x86_64' {
|
export RUSTFLAGS := if arch() == 'x86_64' {
|
||||||
'-C target-cpu=' + x86-64-target
|
linker + ' -C target-cpu=' + x86-64-target
|
||||||
} else {
|
} else {
|
||||||
''
|
linker
|
||||||
}
|
}
|
||||||
|
|
||||||
rootdir := ''
|
rootdir := ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue