瀏覽代碼

update rust, use target-cpu=native (#3100)

Max Gortman 8 年之前
父節點
當前提交
80275a2320
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      frameworks/Rust/hyper/setup.sh
  2. 1 1
      frameworks/Rust/tokio-minihttp/setup.sh
  3. 1 1
      toolset/setup/linux/languages/rust.sh

+ 1 - 1
frameworks/Rust/hyper/setup.sh

@@ -3,5 +3,5 @@
 fw_depends postgresql rust
 
 cargo clean
-cargo build --release
+RUSTFLAGS="-C target-cpu=native" cargo build --release
 ./target/release/hello &

+ 1 - 1
frameworks/Rust/tokio-minihttp/setup.sh

@@ -3,5 +3,5 @@
 fw_depends postgresql rust
 
 cargo clean
-cargo build --release
+RUSTFLAGS="-C target-cpu=native" cargo build --release
 ./target/release/tokio-minihttp &

+ 1 - 1
toolset/setup/linux/languages/rust.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-RUST_VERSION="1.21.0"
+RUST_VERSION="1.22.1"
 
 fw_installed rust && return 0