Use only -O2 for dart2wasm when compiling dartpad_worker
Because -O4 might not have correct semantics. Change-Id: Icaa3ccd1bd219e0c94e7217086c923924061fe9f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/507420 Reviewed-by: Sigurd Meldgaard <sigurdm@google.com> Commit-Queue: Jonas Jensen <jonasfj@google.com>
This commit is contained in:
committed by
dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
0eb19fdba1
commit
a185d6355b
@@ -103,13 +103,11 @@ template("compile_dart2wasm") {
|
||||
"--wasm-opt=" + rebase_path(wasm_opt_binary, root_build_dir),
|
||||
"--phases=cfe,tfa,codegen,opt",
|
||||
"--minify",
|
||||
"-O4",
|
||||
]
|
||||
} else {
|
||||
args += [ "-O2" ]
|
||||
}
|
||||
|
||||
args += [
|
||||
"-O2",
|
||||
rebase_path(main_dart, root_build_dir),
|
||||
rebase_path(output, root_build_dir),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user