From 4465583ccdff226ce6392bd2d56b9be7085b48b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Orsv=C3=A4rn?= Date: Mon, 30 Aug 2021 21:32:09 +0000 Subject: [PATCH] Changed Zshare-generics to `n` on Windows (#2016) It seems like this option needs to be off on Windows: https://github.com/bevyengine/bevy-website/issues/131 This change also simplifies the instructions required for the Fast Compiles section of the book: https://github.com/bevyengine/bevy-website/pull/137 --- .cargo/config_fast_builds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cargo/config_fast_builds b/.cargo/config_fast_builds index d475c0f7fc..c5e74fefbc 100644 --- a/.cargo/config_fast_builds +++ b/.cargo/config_fast_builds @@ -14,7 +14,7 @@ rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"] [target.x86_64-pc-windows-msvc] linker = "rust-lld.exe" -rustflags = ["-Zshare-generics=y"] +rustflags = ["-Zshare-generics=n"] # Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only' # In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.