Use -O3 instead of -O
As recommended in
@@ -209,7 +209,10 @@ template("rust_crate") {
args += [ "-g" ]
}
if (is_official_build) {
- args += [ "-O" ]
+ args += [
+ "-C",
+ "opt-level=3",
+ ]
}
if (is_test) {
args += [ "--test" ]
