Temporarily disable NEON on Android framework builds.

The GCC 4.8 compiler has an AARCH64 bug that generated non-PIC output
that fails to link.

R=scroggo@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@14597 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
djsollen@google.com 2014-05-06 19:47:07 +00:00
Родитель 545a21a714
Коммит 901c43c26f
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -103,7 +103,8 @@
}],
[ '(skia_arch_type == "mips") or (skia_arch_type == "arm" and arm_version < 7) \
or (skia_os == "ios") \
or (skia_os == "android" and skia_arch_type not in ["x86", "arm", "mips", "arm64"])', {
or (skia_os == "android" and skia_arch_type not in ["x86", "arm", "mips", "arm64"]) \
or (skia_android_framework and skia_arch_type == "arm64")', {
'sources': [
'../src/opts/SkBitmapProcState_opts_none.cpp',
'../src/opts/SkBlitMask_opts_none.cpp',
@ -122,7 +123,7 @@
'-mno-apcs-frame',
]
}],
[ 'skia_arch_type == "arm64"', {
[ 'skia_arch_type == "arm64" and skia_android_framework == 0', {
'sources': [
'../src/opts/SkBitmapProcState_arm_neon.cpp',
'../src/opts/SkBitmapProcState_matrixProcs_neon.cpp',

Просмотреть файл

@ -23,6 +23,9 @@
#if defined(SK_CPU_ARM) && defined(__ARM_HAVE_OPTIONAL_NEON_SUPPORT)
# define SK_ARM_NEON_MODE SK_ARM_NEON_MODE_DYNAMIC
/* b/14056351 - temporarily disable NEON support for arm64 */
#elif defined(SK_CPU_ARM64) && defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
# define SK_ARM_NEON_MODE SK_ARM_NEON_MODE_NONE
#elif defined(SK_CPU_ARM) && defined(__ARM_HAVE_NEON) || defined(SK_CPU_ARM64)
# define SK_ARM_NEON_MODE SK_ARM_NEON_MODE_ALWAYS
#else