Revision: 23336
Author:   [email protected]
Date:     Mon Aug 25 07:32:29 2014 UTC
Log:      Add LTO support for Android Chromium.

This is to add support for a Link-Time Optimizations experiment in Android Chromium. As it is disabled by default, it won't change anything for most configurations.

[email protected]

Review URL: https://codereview.chromium.org/497713002

Patch from Fabrice de Gans <[email protected]>.
https://code.google.com/p/v8/source/detail?r=23336

Modified:
 /branches/bleeding_edge/build/toolchain.gypi

=======================================
--- /branches/bleeding_edge/build/toolchain.gypi Tue Aug 12 19:04:15 2014 UTC +++ /branches/bleeding_edge/build/toolchain.gypi Mon Aug 25 07:32:29 2014 UTC
@@ -91,6 +91,9 @@
# Allow to suppress the array bounds warning (default is no suppression).
     'wno_array_bounds%': '',

+    # Link-Time Optimizations
+    'use_lto%': 0,
+
     'variables': {
# This is set when building the Android WebView inside the Android build
       # system, using the 'android' gyp backend.
@@ -241,6 +244,15 @@
                   }],
                 ],
               }],
+              # Disable LTO for v8
+              # v8 is optimized for speed, which takes precedence over
+              # size optimization in LTO.
+              ['use_lto==1', {
+                'cflags!': [
+                  '-flto',
+                  '-ffat-lto-objects',
+                ],
+              }],
             ],
           }],  # _toolset=="target"
         ],

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to