aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Partin <tpartin@micron.com>2022-09-23 14:26:42 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2022-10-24 21:43:25 +0300
commite87259f4a7ebe288edbbfd3b9900816c5d4eaea6 (patch)
tree07617b12fec34f60e2bda5adaf665ab75e7c8df2
parent1939e567d6dc7be5cc9495cacde6b984e58409a0 (diff)
downloadmeson-e87259f4a7ebe288edbbfd3b9900816c5d4eaea6.zip
meson-e87259f4a7ebe288edbbfd3b9900816c5d4eaea6.tar.gz
meson-e87259f4a7ebe288edbbfd3b9900816c5d4eaea6.tar.bz2
Add missing compiler functions to JavaCompiler
Fixes #2571
-rw-r--r--mesonbuild/compilers/java.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/java.py b/mesonbuild/compilers/java.py
index 9794c69..b58cd0e 100644
--- a/mesonbuild/compilers/java.py
+++ b/mesonbuild/compilers/java.py
@@ -39,6 +39,9 @@ class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler):
super().__init__(exelist, version, for_machine, info, full_version=full_version)
self.javarunner = 'java'
+ def get_warn_args(self, level: str) -> T.List[str]:
+ return ['-Xlint:all', '-Xdoclint:all']
+
def get_werror_args(self) -> T.List[str]:
return ['-Werror']
@@ -62,6 +65,9 @@ class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler):
def get_buildtype_args(self, buildtype: str) -> T.List[str]:
return java_buildtype_args[buildtype]
+ def get_depfile_suffix(self) -> str:
+ return 'd'
+
def compute_parameters_with_absolute_paths(self, parameter_list: T.List[str],
build_dir: str) -> T.List[str]:
for idx, i in enumerate(parameter_list):