From f2148fc71845d415a9ec789d76c1289c635652d7 Mon Sep 17 00:00:00 2001 From: LekKit <50500857+LekKit@users.noreply.github.com> Date: Mon, 4 Mar 2024 20:40:59 +0200 Subject: [PATCH] jni: Enable size optimizations on C side --- src/bindings/jni/rvvm_jni.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings/jni/rvvm_jni.c b/src/bindings/jni/rvvm_jni.c index 648080aaa..a778bbc74 100644 --- a/src/bindings/jni/rvvm_jni.c +++ b/src/bindings/jni/rvvm_jni.c @@ -1,4 +1,5 @@ #include "tiny-jni.h" +#include "compiler.h" #include "utils.h" #include "rvvmlib.h" #include "devices/clint.h" @@ -14,6 +15,8 @@ #include "devices/framebuffer.h" #include "devices/hid_api.h" +PUSH_OPTIMIZATION_SIZE + JNIEXPORT jint JNICALL Java_lekkit_rvvm_RVVMNative_get_1abi_1version(JNIEnv* env, jclass class) { UNUSED(env); UNUSED(class); @@ -326,3 +329,5 @@ JNIEXPORT void JNICALL Java_lekkit_rvvm_RVVMNative_hid_1keyboard_1release(JNIEnv UNUSED(env); UNUSED(class); hid_keyboard_release((hid_keyboard_t*)(size_t)kb, key); } + +POP_OPTIMIZATION_SIZE