Index: libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi |
diff --git a/libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi b/libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi |
index a28c97c3b5049d2ce766533003d9b34f3a013d52..b42c12d1569152e511558ebba34ff4bcc901b016 100644 |
--- a/libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi |
+++ b/libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi |
@@ -39,6 +39,15 @@ |
'<(libvpx_source)/vp9/encoder/arm/neon/vp9_variance_neon.c', |
], |
'cflags!': [ '-mfpu=vfpv3-d16' ], |
+ 'conditions': [ |
+ # Disable LTO in neon targets due to compiler bug |
+ ['use_lto==1', { |
+ 'cflags!': [ |
+ '-flto', |
+ '-ffat-lto-objects', |
+ ], |
+ }], |
+ ], |
'cflags': [ '-mfpu=neon', ], |
'xcode_settings': { 'OTHER_CFLAGS': [ '-mfpu=neon' ] }, |
}, |