Avoid the usage of LLVM own assembler implementation on specific parts
as the assembler isn't build with NEON support.
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=
1561819
Gbp-Pq: Topic porting-armhf
Gbp-Pq: Name Don-t-use-LLVM-internal-assembler-on-armhf.patch
SOURCES += [
'yuv_convert_arm.cpp',
]
+ # The integrated assembler fails to build yuv_convert_arm.cpp because it doesn't have NEON
+ if CONFIG['CC_TYPE'] == 'clang':
+ CXXFLAGS += ['-fno-integrated-as']
LOCAL_INCLUDES += ['/media/libyuv/libyuv/include']
ASFLAGS += ['-I%s/media/libjpeg/simd/nasm/' % TOPSRCDIR]
ASFLAGS += ['-I%s/media/libjpeg/simd/x86_64/' % TOPSRCDIR]
+# The integrated assembler fails to build simd/arm/jsimd_neon.S because it doesn't have NEON
+if CONFIG['CC_TYPE'] == 'clang' and CONFIG['CPU_ARCH'] == 'arm':
+ ASFLAGS += ['-fno-integrated-as']
+
# We allow warnings for third-party code that can be updated from upstream.
AllowCompilerWarnings()