From 98e4770bbc66f9801cd89821f3064b7d26660639 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 8 Apr 2019 04:46:53 +0300 Subject: [PATCH 1/2] Use -O3 instead of -O Attempting to correct hyper_hello latency problem. --- build_extra/rust/rust.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni index 8bd1bc0852f4c..32642db119458 100644 --- a/build_extra/rust/rust.gni +++ b/build_extra/rust/rust.gni @@ -209,7 +209,7 @@ template("rust_crate") { args += [ "-g" ] } if (is_official_build) { - args += [ "-O" ] + args += [ "-O3" ] } if (is_test) { args += [ "--test" ] From 47df8089877126e0f6a09b8669f74594c0a23c0c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 8 Apr 2019 04:57:32 +0300 Subject: [PATCH 2/2] opt-level=3 --- build_extra/rust/rust.gni | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni index 32642db119458..cd755d6d315e5 100644 --- a/build_extra/rust/rust.gni +++ b/build_extra/rust/rust.gni @@ -209,7 +209,10 @@ template("rust_crate") { args += [ "-g" ] } if (is_official_build) { - args += [ "-O3" ] + args += [ + "-C", + "opt-level=3", + ] } if (is_test) { args += [ "--test" ]