summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-08-29 00:24:06 -0700
committerBert Belder <bertbelder@gmail.com>2019-08-29 11:17:35 -0700
commit5401cb76304ae8d3e8896f6020ba4ef25bac0bba (patch)
treec9534280b2b968ffb19d7bced7ed090d4ae0462f
parente939ec0f21d7af5da6186258993cebd1ee349a9e (diff)
Revert "Use -O3 instead of -O (#2070)"
It didn't deliver the expected performance improvements, so let's go back and use Rust defaults again. This reverts commit 4232c89c9eb18b32a6e87bfbb46c8d5862f52fb3.
-rw-r--r--build_extra/rust/rust.gni5
1 files changed, 1 insertions, 4 deletions
diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni
index 01f1b8a49..28d606a1c 100644
--- a/build_extra/rust/rust.gni
+++ b/build_extra/rust/rust.gni
@@ -253,10 +253,7 @@ template("_rust_crate") {
args += [ "-g" ]
}
if (is_official_build) {
- args += [
- "-C",
- "opt-level=3",
- ]
+ args += [ "-O" ]
}
if (is_test) {
args += [ "--test" ]