From a35cf732bf737606c62186fc890f07588c7c913c Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Mon, 15 Sep 2014 14:48:01 +0000 Subject: [PATCH] Compile V8 with extra optimization in GN Release mode. This matches the GYP build which does 'optimize': 'max' on the corresponding targets. R=jochen@chromium.org Review URL: https://codereview.chromium.org/567073003 Patch from Brett Wilson . git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23952 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- BUILD.gn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index dced280..6be74da 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1129,6 +1129,11 @@ source_set("v8_base") { configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ ":internal_config", ":features", ":toolchain" ] + if (!is_debug) { + configs -= [ "//build/config/compiler:optimize" ] + configs += [ "//build/config/compiler:optimize_max" ] + } + defines = [] deps = [ ":v8_libbase" ] @@ -1214,6 +1219,11 @@ source_set("v8_libbase") { configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ ":internal_config_base", ":features", ":toolchain" ] + if (!is_debug) { + configs -= [ "//build/config/compiler:optimize" ] + configs += [ "//build/config/compiler:optimize_max" ] + } + defines = [] if (is_posix) { @@ -1277,6 +1287,11 @@ source_set("v8_libplatform") { configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ ":internal_config_base", ":features", ":toolchain" ] + if (!is_debug) { + configs -= [ "//build/config/compiler:optimize" ] + configs += [ "//build/config/compiler:optimize_max" ] + } + deps = [ ":v8_libbase", ] -- 2.7.4