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. --- stubs/.gitignore | 1 + 1 file changed, 1 insertion(+) (limited to 'stubs/.gitignore') diff --git a/stubs/.gitignore b/stubs/.gitignore index bb372d0..639c859 100644 --- a/stubs/.gitignore +++ b/stubs/.gitignore @@ -1 +1,2 @@ classes_min/ +classes_nolog/ -- cgit v1.3.1