From 7b3de4b7d0d30eed77f986cd0efb7c4deb4d1bb1 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 17 Aug 2015 21:06:23 -0700 Subject: [PATCH] Re-enable LLVM LTO on Neon targets. LTO was disabled due to a GCC compiler bug that does not affect LLVM. This fixes the build in the cfi_vptr==1 configuration, which requires LLVM LTO. TBR=pcc@google.com BUG=chromium:469376 patch from issue 1295663002 at patchset 1 (http://crrev.com/1295663002#ps1) Review URL: https://codereview.webrtc.org/1294293003 . Patch from Peter Collingbourne . Cr-Commit-Position: refs/heads/master@{#9721} --- webrtc/build/arm_neon.gypi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/build/arm_neon.gypi b/webrtc/build/arm_neon.gypi index 9070080fc3..1d1be3e48c 100644 --- a/webrtc/build/arm_neon.gypi +++ b/webrtc/build/arm_neon.gypi @@ -30,9 +30,9 @@ '-mfpu=neon', ], }], - # Disable LTO on NEON targets due to compiler bug. + # Disable GCC LTO on NEON targets due to compiler bug. # TODO(fdegans): Enable this. See crbug.com/408997. - ['use_lto==1', { + ['clang==0 and use_lto==1', { 'cflags!': [ '-flto', '-ffat-lto-objects',