aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-11-02 09:36:00 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2021-11-08 23:33:14 +0200
commitf48d75dcaecec5a441ec745388c08c73201ed46c (patch)
tree5b3bcb778d698ecac8a25662eacffe2a105f80d1
parent5af556e2b85ce264bb7742261e68ef4347b316aa (diff)
downloadmeson-f48d75dcaecec5a441ec745388c08c73201ed46c.zip
meson-f48d75dcaecec5a441ec745388c08c73201ed46c.tar.gz
meson-f48d75dcaecec5a441ec745388c08c73201ed46c.tar.bz2
compilers/java: Add no_warn_args and debug_args methods
-rw-r--r--mesonbuild/compilers/java.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/compilers/java.py b/mesonbuild/compilers/java.py
index 38b90ac..4abf998 100644
--- a/mesonbuild/compilers/java.py
+++ b/mesonbuild/compilers/java.py
@@ -40,6 +40,9 @@ class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler):
def get_werror_args(self) -> T.List[str]:
return ['-Werror']
+ def get_no_warn_args(self) -> T.List[str]:
+ return ['-nowarn']
+
def get_output_args(self, outputname: str) -> T.List[str]:
if outputname == '':
outputname = './'
@@ -103,3 +106,8 @@ class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler):
def get_optimization_args(self, optimization_level: str) -> T.List[str]:
return []
+
+ def get_debug_args(self, is_debug: bool) -> T.List[str]:
+ if is_debug:
+ return ['-g']
+ return ['-g:none']