Compile V8 with extra optimization in GN Release mode.
authorjochen@chromium.org <jochen@chromium.org>
Mon, 15 Sep 2014 14:48:01 +0000 (14:48 +0000)
committerjochen@chromium.org <jochen@chromium.org>
Mon, 15 Sep 2014 14:48:01 +0000 (14:48 +0000)
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 <brettw@chromium.org>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23952 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

BUILD.gn

index dced280..6be74da 100644 (file)
--- 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",
   ]