faster bevy compile with mold and nightly rustc
This commit is contained in:
6
.cargo/config.toml
Normal file
6
.cargo/config.toml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[target.x86_64-unknown-linux-gnu]
|
||||||
|
linker = "clang"
|
||||||
|
rustflags = [
|
||||||
|
"-C", "link-arg=-fuse-ld=mold", # Link using mold
|
||||||
|
"-Zshare-generics=y" # (Nightly) Make the current crate share its generic instantiations
|
||||||
|
]
|
@ -21,7 +21,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Includes cargo, rustc, rustfmt
|
# Includes cargo, rustc, rustfmt
|
||||||
rust-stable = pkgs.rust-bin.stable.latest.default.override {
|
rust-stable = pkgs.rust-bin.nightly.latest.default.override {
|
||||||
extensions = ["rust-src"]; # Include the rust stdlib source for intellij
|
extensions = ["rust-src"]; # Include the rust stdlib source for intellij
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
@ -30,6 +30,9 @@
|
|||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
gcc14
|
gcc14
|
||||||
|
clang_19
|
||||||
|
# lld
|
||||||
|
mold
|
||||||
rust-stable
|
rust-stable
|
||||||
# rust-analyzer # System install
|
# rust-analyzer # System install
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user