Skip to content

Commit e4fc66c

Browse files
authored
[andr] Instruct gradle to generate usable symbols (#581)
1 parent e7444a8 commit e4fc66c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

platform/jvm/capture/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ cargoNdk {
112112
targets = arrayListOf("arm64")
113113
// enable 16 KB ELF alignment on Android to support API 35+
114114
extraCargoEnv = mapOf(
115-
"RUSTFLAGS" to "-C link-args=-Wl,-z,max-page-size=16384",
115+
"RUSTFLAGS" to "-C link-args=-Wl,-z,max-page-size=16384,--build-id",
116116
"RUSTC_BOOTSTRAP" to "1" // Required for using unstable features in the Rust compiler
117117
)
118118
}

platform/jvm/gradle-test-app/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,19 @@ android {
7474
// This needs to be set to access the strip tools to strip the shared libraries.
7575
ndkVersion = "27.2.12479018"
7676

77+
buildTypes {
78+
debug {
79+
ndk {
80+
debugSymbolLevel = "SYMBOL_TABLE" // Using this to reduce output .so size
81+
}
82+
}
83+
release {
84+
ndk {
85+
debugSymbolLevel = "FULL"
86+
}
87+
}
88+
}
89+
7790
// Run lint checks on every build
7891
applicationVariants.configureEach {
7992
val lintTask = tasks.named("lint${name.replaceFirstChar(Char::titlecase)}")

0 commit comments

Comments
 (0)