Просмотр исходного кода

force x86_64-v2 cpu for linux builds (fixup for #5674) (#5891)

actually force x86_64-v2 cpu
Forcing v3 postponed until build issues with rocksdb are resolved. 
Co-authored-by: Alex Pyattaev <alex.pyattaev@anza.xyz>
Alex Pyattaev 7 месяцев назад
Родитель
Сommit
be73302abd
2 измененных файлов с 3 добавлено и 3 удалено
  1. 3 0
      .cargo/config.toml
  2. 0 3
      Cargo.toml

+ 3 - 0
.cargo/config.toml

@@ -0,0 +1,3 @@
+[target.x86_64-unknown-linux-gnu]
+# When building for linux, target the minimal supported CPU
+rustflags = ["-Ctarget-cpu=x86-64-v2"]

+ 0 - 3
Cargo.toml

@@ -1,6 +1,3 @@
-[build]
-rustflags = ["-Ctarget-cpu=x86-64-v3"]
-
 [profile.release-with-debug]
 inherits = "release"
 debug = true