diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index a65184dc..8dde26fa 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -891,10 +891,11 @@ config("compiler_cpu_abi") { if (current_cpu == "x64") { cflags += [ "-m64", + "-O3", "-mavx", "-maes", ] - ldflags += [ "-m64", "-mavx", "-maes", ] + ldflags += [ "-m64", "-Wl,-O3", "-mavx", "-maes", ] } else if (current_cpu == "x86") { cflags += [ "-m32" ] ldflags += [ "-m32" ]