mistral-rs: do not use native cpu optimizations (#393166)
This commit is contained in:
@@ -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]
|
||||
@@ -79,6 +79,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
hash = "sha256-mkxgssJUBtM1DYOhFfj8YKlW61/gd0cgPtMze7YZ9L8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./no-native-cpu.patch
|
||||
];
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-YGGtS8gJJQKIgXxMWjO05ikSVdfVNs+cORbJ+Wf88y4=";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user