From 9e48c3be1d71d9f29d51cd387a091276abff1c42 Mon Sep 17 00:00:00 2001 From: Henri Bourcereau Date: Tue, 31 Oct 2023 17:12:02 +0100 Subject: [PATCH] bevy fast compilation --- client/.cargo/config.toml | 3 +++ devenv.nix | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 client/.cargo/config.toml diff --git a/client/.cargo/config.toml b/client/.cargo/config.toml new file mode 100644 index 0000000..0243f8f --- /dev/null +++ b/client/.cargo/config.toml @@ -0,0 +1,3 @@ +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"] diff --git a/devenv.nix b/devenv.nix index 37da864..127c215 100644 --- a/devenv.nix +++ b/devenv.nix @@ -9,6 +9,9 @@ pkgs.alsaLib pkgs.udev + # bevy fast compile + pkgs.clang pkgs.lld + # copié de https://github.com/mmai/Hyperspeedcube/blob/develop/devenv.nix # TODO : retirer ce qui est inutile # pour erreur à l'exécution, selon https://github.com/emilk/egui/discussions/1587