Bug 1085599: Enable NEON intrinsics for C files when even when building for ARMv6. r=rillian,ted

This commit is contained in:
Chris Jones 2014-11-06 14:50:42 -08:00
parent 1e8e80f612
commit 62640670bd

View File

@ -51,7 +51,6 @@ if CONFIG['VPX_X86_ASM']:
arm_asm_files = []
if CONFIG['VPX_ARM_ASM']:
arm_asm_files += files['ARM_ASM']
CFLAGS += ['-mfpu=neon']
if CONFIG['VPX_AS_CONVERSION']:
GENERATED_SOURCES += [ "%s.%s" % (f, CONFIG['VPX_ASM_SUFFIX'])
@ -63,6 +62,10 @@ if CONFIG['VPX_ARM_ASM']:
else:
SOURCES += sorted(arm_asm_files)
for f in SOURCES:
if f.endswith('.c') and 'neon' in f:
SOURCES[f].flags += ['-march=armv7-a', '-mthumb', '-mfloat-abi=softfp', '-mfpu=neon']
# boolhuff_armv5te.asm defines the same functions as boolhuff.c instead of
# using RTCD, so we have to make sure we only add one of the two.
if 'vp8/encoder/arm/armv5te/boolhuff_armv5te.asm' not in arm_asm_files: