[Fix] (Build): compile fordebug native code as RelWithDebInfo (debuggable APK was shipping an -O0 libMobileGL.so, invalidating all performance measurements on this flavor)

This commit is contained in:
2026-08-26 02:18:47 -04:00
parent c1d6a3c908
commit 34b7cc772f
+9
View File
@@ -31,6 +31,15 @@ android {
} }
fordebug { fordebug {
debuggable true debuggable true
// Keep the APK debuggable (simpleperf --app, JDWP) but build the
// native library like a release: AGP maps debuggable build types to
// CMAKE_BUILD_TYPE=Debug, which compiles MobileGL at -O0 and makes
// every performance measurement on this flavor meaningless.
externalNativeBuild {
cmake {
arguments "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
}
}
} }
} }
if (standalonePluginBuild) { if (standalonePluginBuild) {