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

@ -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 := ''