This commit is contained in:
Matthew Deville 2025-08-31 00:17:11 +02:00
parent 44ab1ad7f3
commit 8878ee7172
3 changed files with 7 additions and 2 deletions

3
.cargo/config.toml Normal file
View file

@ -0,0 +1,3 @@
[target.'cfg(target_os = "linux")']
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/path/to/mold"]

View file

@ -44,9 +44,12 @@
] ]
++ xorgBuildInputs ++ xorgBuildInputs
++ waylandBuildInputs; ++ waylandBuildInputs;
mkShell = pkgs.mkShell.override {
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv;
};
in in
{ {
devShells.default = pkgs.mkShell { devShells.default = mkShell {
inherit buildInputs nativeBuildInputs; inherit buildInputs nativeBuildInputs;
RUST_BACKTRACE = 1; RUST_BACKTRACE = 1;

View file

@ -1,4 +1,3 @@
use bevy::prelude::*; use bevy::prelude::*;
fn main() { fn main() {