Revert "Use thumb versions of external libraries with ARMv7."

This reverts commit 3572927ce7c9ce6d528820f9575a93985f9309bf.

Reason: 9% regression on thread_renderer_compositor_cpu_time_per_frame/http___slashdot.org_.

BUG=431612
TBR=brettw

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

Cr-Original-Commit-Position: refs/heads/master@{#306589}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e7f4fa57138c2ed44235456d8bcfbe165ad1938c
This commit is contained in:
pasko 2014-12-03 03:47:20 -08:00 коммит произвёл Commit bot
Родитель e2449ed33b
Коммит 80cd1adaa5
4 изменённых файлов: 30 добавлений и 66 удалений

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

@ -12,26 +12,13 @@
# <(SHARED_LIB_DIR)
'target_name': 'copy_system_libraries',
'type': 'none',
'conditions': [
['target_arch=="arm" and arm_thumb==1', {
'copies': [
{
'destination': '<(SHARED_LIB_DIR)/',
'files': [
'<(android_stlport_libs_dir)/thumb/libstlport_shared.so',
],
},
'copies': [
{
'destination': '<(SHARED_LIB_DIR)/',
'files': [
'<(android_stlport_libs_dir)/libstlport_shared.so',
],
}, {
'copies': [
{
'destination': '<(SHARED_LIB_DIR)/',
'files': [
'<(android_stlport_libs_dir)/libstlport_shared.so',
],
},
],
}],
},
],
},
],

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

@ -2349,7 +2349,6 @@
}, {
'use_seccomp_bpf%': 0,
}],
# Set component build with LTO until all tests pass.
# This also reduces link time.
['use_lto==1', {
@ -2388,7 +2387,7 @@
# Whether to allow building of the GPU-related isolates.
'archive_gpu_tests%': 0,
# Whether to allow building of chromoting related isolates.
# Whether to allow building of chromoting related isolates.
'archive_chromoting_tests%': 0,
},
'target_defaults': {
@ -4638,19 +4637,10 @@
'--sysroot=<(android_ndk_sysroot)',
'-nostdlib',
],
'variables': {
'conditions': [
['target_arch=="arm" and arm_thumb==1', {
'thumb_option%': '-mthumb',
}, {
'thumb_option%': '',
}],
],
},
'libraries': [
'-l<(android_stlport_library)',
# Manually link the libgcc.a that the cross compiler uses.
'<!(<(android_toolchain)/*-gcc <(thumb_option) -print-libgcc-file-name)',
'<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
'-lc',
'-ldl',
'-lm',
@ -4715,12 +4705,8 @@
'cflags': [
'-isystem<(android_stlport_include)',
],
'conditions': [
['target_arch=="arm" and arm_thumb==1', {
'ldflags': [ '-L<(android_stlport_libs_dir)/thumb' ]
}, {
'ldflags': [ '-L<(android_stlport_libs_dir)' ]
}],
'ldflags': [
'-L<(android_stlport_libs_dir)',
],
}, { # else: android_webview_build!=0
'aosp_build_settings': {

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

@ -39,23 +39,6 @@ if (is_android) {
android_chrome_build_id = "\"\""
}
# ABI ------------------------------------------------------------------------
if (cpu_arch == "x86") {
android_app_abi = "x86"
} else if (cpu_arch == "arm") {
import("//build/config/arm.gni")
if (arm_version < 7) {
android_app_abi = "armeabi"
} else {
android_app_abi = "armeabi-v7a"
}
} else if (cpu_arch == "mipsel") {
android_app_abi = "mips"
} else {
assert(false, "Unknown Android ABI: " + cpu_arch)
}
# Host stuff -----------------------------------------------------------------
# Defines the name the Android build gives to the current host CPU
@ -132,13 +115,8 @@ if (is_android) {
android_prebuilt_arch = "android-arm"
_binary_prefix = "arm-linux-androideabi"
android_toolchain_root = "$arm_android_toolchain_root"
if (arm_use_thumb) {
android_libgcc_file =
"$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_toolchain_version}/thumb/libgcc.a"
} else {
android_libgcc_file =
"$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_toolchain_version}/libgcc.a"
}
android_libgcc_file =
"$android_toolchain_root/lib/gcc/arm-linux-androideabi/${_android_toolchain_version}/libgcc.a"
} else if (cpu_arch == "mipsel") {
android_prebuilt_arch = "android-mips"
_binary_prefix = "mipsel-linux-android"
@ -162,6 +140,23 @@ if (is_android) {
} else {
android_stlport_library = "stlport_static"
}
# ABI ------------------------------------------------------------------------
if (cpu_arch == "x86") {
android_app_abi = "x86"
} else if (cpu_arch == "arm") {
import("//build/config/arm.gni")
if (arm_version < 7) {
android_app_abi = "armeabi"
} else {
android_app_abi = "armeabi-v7a"
}
} else if (cpu_arch == "mipsel") {
android_app_abi = "mips"
} else {
assert(false, "Unknown Android ABI: " + cpu_arch)
}
} else {
if (!defined(is_android_webview_build)) {
is_android_webview_build = false

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

@ -512,11 +512,7 @@ config("runtime_library") {
cflags += [ "-isystem" +
rebase_path("$android_stlport_root/stlport", root_build_dir) ]
if (cpu_arch == "arm" && arm_use_thumb) {
lib_dirs += [ "$android_stlport_root/libs/$android_app_abi/thumb" ]
} else {
lib_dirs += [ "$android_stlport_root/libs/$android_app_abi" ]
}
lib_dirs += [ "$android_stlport_root/libs/$android_app_abi" ]
if (component_mode == "shared_library") {
libs += [ "stlport_shared" ]