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

12
flake.lock generated
View file

@ -67,11 +67,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1708526834, "lastModified": 1708659443,
"narHash": "sha256-dcE2cal0dLwomM977zsZpL/i9O3zloaMPkC4oor2yYc=", "narHash": "sha256-OULRHvT21UNDmGMYRWs782NHNc1BcrNqj3UVJkx7zP0=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "98ebeeebd8c7462409f82d34ff4ac0a7ae9116c7", "rev": "b7b6f300841bb61d8833fee1c58d0e3670849b61",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -109,11 +109,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1708615558, "lastModified": 1708650812,
"narHash": "sha256-Bt3gjUO81wIPLqm7qOz9f7fdimXkas2ReBQho7ldJOc=", "narHash": "sha256-2ewmMY9c2thujsAAmIuoIDp0HE8nIrtPRiwyajunkho=",
"owner": "martinvonz", "owner": "martinvonz",
"repo": "jj", "repo": "jj",
"rev": "62f0cb8c3f03ade34e8862ba0cd600603fc4a91a", "rev": "2f5ce9db892bcd60f9b0167bd1cca9e02fb9910e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

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

View file

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