perf: use mold
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-09-08 00:31:18 +03:00
parent 18b6803912
commit a4dbf88220
3 changed files with 9 additions and 3 deletions

View file

@ -13,3 +13,6 @@ syn = { workspace = true }
quote = { workspace = true } quote = { workspace = true }
proc-macro2 = { workspace = true } proc-macro2 = { workspace = true }
heck = { workspace = true } heck = { workspace = true }
[target.'cfg(target_os = "linux")']
rustflags = ["-C", "link-arg=-fuse-ld=mold"]

View file

@ -2,10 +2,10 @@
{pkgs?import<nixpkgs>{}}:let {pkgs?import<nixpkgs>{}}:let
stdenv = pkgs.clang19Stdenv; stdenv = pkgs.clang19Stdenv;
name = "tengri"; name = "tengri";
nativeBuildInputs = with pkgs; [ pkg-config libclang ]; nativeBuildInputs = [ pkgs.pkg-config pkgs.libclang pkgs.mold ];
buildInputs = with pkgs; [ libclang ]; buildInputs = [ pkgs.libclang ];
LIBCLANG_PATH = "${pkgs.libclang.lib.outPath}/lib"; LIBCLANG_PATH = "${pkgs.libclang.lib.outPath}/lib";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; []); LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [];
in pkgs.mkShell.override { in pkgs.mkShell.override {
inherit stdenv; inherit stdenv;
} { } {

View file

@ -22,3 +22,6 @@ tengri_tui = { optional = true, path = "../tui" }
tengri_proc = { path = "../proc" } tengri_proc = { path = "../proc" }
tengri = { path = ".", features = [ "dsl" ] } tengri = { path = ".", features = [ "dsl" ] }
crossterm = { workspace = true } crossterm = { workspace = true }
[target.'cfg(target_os = "linux")']
rustflags = ["-C", "link-arg=-fuse-ld=mold"]