From f38efe3ea55ab83d0f0a13b9e52ea61daf880226 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 16 Nov 2026 22:36:22 +0100 Subject: Add --no-log stub flavor and a second jar The --no-log flag in gen_class.py is now wired through the body generators: emitted stubs skip KotlinProxyLog.loaded()/call() and route reference returns through kotlin.proxy.KotlinProxyNoLog.returnValue instead, so the generated trio references only KotlinProxyNoLog (call/ loaded methodrefs are kept out of the constant pool; max_stack is recomputed for the logging-free bodies). Makefile builds two jars from the same kotlin.proxy.* sources: dist/kotlin-proxy-compiler-stubs.jar (logging) and dist/kotlin-proxy-compiler-stubs-nolog.jar (--no-log). Adds KotlinProxyNoLog (logging-free returnValue/newInstance) and ignores its build outputs like the log flavor's. --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index e9c8436..9285c6c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ dist/ .stamp vendor/ stubs/.compiled +stubs/.compiled_nolog stubs/gen/ tools/__pycache__/ -- cgit v1.3.1