From 046539ce51f922f30ef9adae0c7196de55f6ac20 Mon Sep 17 00:00:00 2001 From: MOVZX Date: Fri, 5 Dec 2025 18:34:48 +0700 Subject: [PATCH] core: jni: Compile with -O3 Signed-off-by: MOVZX --- core/jni/Android.bp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/jni/Android.bp b/core/jni/Android.bp index 40f6acceecb17..51ea9e669fa60 100644 --- a/core/jni/Android.bp +++ b/core/jni/Android.bp @@ -31,6 +31,7 @@ cc_library_shared_for_libandroid_runtime { name: "libandroid_runtime", host_supported: true, cflags: [ + "-O3", "-Wno-cast-function-type-mismatch", "-Wno-unused-parameter", "-Wno-non-virtual-dtor", @@ -54,7 +55,7 @@ cc_library_shared_for_libandroid_runtime { "-Wunreachable-code", ], - cppflags: ["-Wno-conversion-null"], + cppflags: ["-Wno-conversion-null", "-O3"], product_variables: { eng: {