aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-09-05 16:28:13 -0700
committerColin Cross <ccross@android.com>2018-09-05 16:30:16 -0700
commited064c0b1f2e8dc78a3ab1312c4d484cbefbab85 (patch)
tree65a6cb235427125c0cfcb2c806d24fc62828bb6f /android
parent9a959cd51997bbb747ea7ffd889bc49188337603 (diff)
downloadbuild_soong-ed064c0b1f2e8dc78a3ab1312c4d484cbefbab85.tar.gz
build_soong-ed064c0b1f2e8dc78a3ab1312c4d484cbefbab85.tar.bz2
build_soong-ed064c0b1f2e8dc78a3ab1312c4d484cbefbab85.zip
Fix logic for adding gnu debuglink to match Make
Only add gnu debuglink on userdebug builds to match Make, and don't add it when using minidebuginfo, which doesn't support it. Bug: 113936524 Test: m checkbuild Change-Id: Ifd529f88d63afa5627172fb6ea612aea77159f40
Diffstat (limited to 'android')
-rw-r--r--android/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go
index 3a2a0054..3ef202bf 100644
--- a/android/config.go
+++ b/android/config.go
@@ -572,6 +572,10 @@ func (c *config) MinimizeJavaDebugInfo() bool {
return Bool(c.productVariables.MinimizeJavaDebugInfo) && !Bool(c.productVariables.Eng)
}
+func (c *config) Debuggable() bool {
+ return Bool(c.productVariables.Debuggable)
+}
+
func (c *config) DevicePrefer32BitExecutables() bool {
return Bool(c.productVariables.DevicePrefer32BitExecutables)
}