Reviewers: pasko (OOO till Aug 28), Michael Achenbach,

Description:
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.

Please review this at https://codereview.chromium.org/497713002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+10, -0 lines):
  M build/toolchain.gypi


Index: build/toolchain.gypi
diff --git a/build/toolchain.gypi b/build/toolchain.gypi
index 45c1f9dac8e5658a205c1a977fff318363062ae5..8a57dc014b956c5aa8f43e098be769593e34d2a5 100644
--- a/build/toolchain.gypi
+++ b/build/toolchain.gypi
@@ -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,13 @@
                   }],
                 ],
               }],
+              # Disable LTO for v8
+              ['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