rust build time improvements
This commit is contained in:
parent
54db699510
commit
279ed963f3
2 changed files with 14 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
mold-wrapped
|
||||
jetbrains.idea-community
|
||||
jdt-language-server
|
||||
gradle
|
||||
|
|
|
|||
|
|
@ -35,6 +35,19 @@
|
|||
};
|
||||
};
|
||||
|
||||
home.file.".cargo/config.toml".text = ''
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-musl"
|
||||
|
||||
[provile.dev]
|
||||
debug = 0
|
||||
strip = "debuginfo"
|
||||
|
||||
[target.x86-unknown-linux-musl]
|
||||
linker = "clang"
|
||||
rustflag = ["-C", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||
'';
|
||||
|
||||
home.username = "tao";
|
||||
home.homeDirectory = "/home/tao";
|
||||
home.stateVersion = "23.11";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue