Commit 0da64b5e by Tobin Ehlis Committed by Commit Bot

Add build-id to tests for Android

This allows Android Studio to correctly match debug symbols. Change-Id: I2bd15e11162d57a3c2cee4434afe6d4831581c25 Reviewed-on: https://chromium-review.googlesource.com/c/1304135 Commit-Queue: Tobin Ehlis <tobine@google.com> Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 25224e78
...@@ -86,6 +86,17 @@ if (build_with_chromium) { ...@@ -86,6 +86,17 @@ if (build_with_chromium) {
} }
} }
# This config adds build-ids to the associated library.
# -Wl is a special option that indicates that clang should pass the associated
# option --build-id to the linker. This will cause a build-id section to be added
# to the associated library. The build-id makes it possible for a debugger to
# find the right symbol file to use.
config("build_id_config") {
if (is_clang) {
ldflags = [ "-Wl,--build-id" ]
}
}
test("angle_unittests") { test("angle_unittests") {
include_dirs = [ "$angle_root/src" ] include_dirs = [ "$angle_root/src" ]
...@@ -124,6 +135,7 @@ if (is_win || is_linux || is_mac || is_android) { ...@@ -124,6 +135,7 @@ if (is_win || is_linux || is_mac || is_android) {
if (is_android) { if (is_android) {
use_native_activity = true use_native_activity = true
configs += [ ":build_id_config" ]
} }
sources = angle_end2end_tests_sources sources = angle_end2end_tests_sources
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment