Commit fef4fab6 authored by pcc's avatar pcc Committed by Commit bot

Re-enable LLVM LTO for ARM.

v8 is optimized for speed. Because GCC LTO merges flags at link time,
we disable LTO to prevent any -O2 flags from taking precedence over v8's
-Os flag. However, LLVM LTO does not work this way so we keep LTO enabled
under LLVM.

This fixes the ARM build in the cfi_vptr==1 configuration, which requires
LLVM LTO.

R=adamk@chromium.org
BUG=chromium:469376
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#30455}
parent 6773e296
...@@ -277,10 +277,12 @@ ...@@ -277,10 +277,12 @@
}], }],
], ],
}], }],
# Disable LTO for v8 # Disable GCC LTO for v8
# v8 is optimized for speed, which takes precedence over # v8 is optimized for speed. Because GCC LTO merges flags at link
# size optimization in LTO. # time, we disable LTO to prevent any -O2 flags from taking
['use_lto==1', { # precedence over v8's -Os flag. However, LLVM LTO does not work
# this way so we keep LTO enabled under LLVM.
['clang==0 and use_lto==1', {
'cflags!': [ 'cflags!': [
'-flto', '-flto',
'-ffat-lto-objects', '-ffat-lto-objects',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment