From d76f464ca29bd637678af5e2dc734d3d77797c9b Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 25 Sep 2024 10:00:04 +0200 Subject: [PATCH] Make rust build deterministic See https://reproducible-builds.org/ for why this is good. --- native/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/native/Cargo.toml b/native/Cargo.toml index 3a0b79f7e..618969e41 100644 --- a/native/Cargo.toml +++ b/native/Cargo.toml @@ -4,3 +4,8 @@ members = [ "libcst", "libcst_derive", ] + +# needed for reproducible builds from some hard-to-grasp issue in rust or LLVM +# = https://github.com/rust-lang/rust/issues/128675 +[profile.release] +lto = "off"