summaryrefslogtreecommitdiff
path: root/build_extra/rust
diff options
context:
space:
mode:
Diffstat (limited to 'build_extra/rust')
-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" ]