mistral-rs: do not use native cpu optimizations (#393166)

This commit is contained in:
Gaétan Lepage
2025-03-25 21:13:20 +01:00
committed by GitHub
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,16 @@
diff --git a/.cargo/config.toml b/.cargo/config.toml
index 4abaaa83d..edc4d6710 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,12 +1,5 @@
-[target.x86_64-unknown-linux-gnu]
-rustflags = ["-C", "target-cpu=native"]
-
-[target.aarch64-apple-darwin]
-[build]
-rustflags = ["-C", "target-cpu=native"]
-
[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=+simd128"]
[target.x86_64-apple-darwin]
+4
View File
@@ -79,6 +79,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-mkxgssJUBtM1DYOhFfj8YKlW61/gd0cgPtMze7YZ9L8=";
};
patches = [
./no-native-cpu.patch
];
useFetchCargoVendor = true;
cargoHash = "sha256-YGGtS8gJJQKIgXxMWjO05ikSVdfVNs+cORbJ+Wf88y4=";