From 04cd0e2e0057146782df0085995408856ceff5d0 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 25 Aug 2025 14:10:37 +0200 Subject: [PATCH] Allow explicit selection of Java compiler Makes Java more consistent with other compilers and allows explicit selection of Java compiler version and/or provider when building with Meson. --- docs/markdown/Reference-tables.md | 1 + mesonbuild/envconfig.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md index 981bd18cf256..03ff1be64ae4 100644 --- a/docs/markdown/Reference-tables.md +++ b/docs/markdown/Reference-tables.md @@ -393,6 +393,7 @@ machine](#Environment-variables-per-machine) section for details. | C# | CSC | CSC | The linker is the compiler | | Cython | CYTHON | | | | nasm | NASM | | Uses the C linker | +| java | JAVAC | | | | archiver | | AR | | *The old environment variables are still supported, but are deprecated diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index 43fad0cd2ac4..c85d8da90cf6 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -101,6 +101,7 @@ 'rust': 'RUSTC', 'vala': 'VALAC', 'nasm': 'NASM', + 'java': 'JAVAC', # Linkers 'c_ld': 'CC_LD',