This commit is contained in:
Tao Tien 2024-02-22 21:46:18 -08:00
parent e69cd8e3dd
commit 63baacc410
3 changed files with 14 additions and 9 deletions

View file

@ -6,7 +6,7 @@
# expressvpn
# fractal
# gh
# joshuto
joshuto
# libftdi
# libusb
# mdbook

View file

@ -4,7 +4,7 @@
rr = "run --release"
[build]
target = "x86_64-unknown-linux-musl"
target = "x86_64-unknown-linux-gnu"
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
rustflags = ["-Z", "threads=8"]
@ -27,7 +27,12 @@
codegen-units = 1
lto = "fat"
[target.x86-unknown-linux-musl]
# [target.x86-unknown-linux-musl]
# # linker = "musl-gcc"
# linker = "clang"
# rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
[target.x86-unknown-linux-gnu]
# linker = "musl-gcc"
linker = "clang"
rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]