compilers/java: Add no_warn_args and debug_args methods

pull/9396/head
Dylan Baker 3 years ago committed by Jussi Pakkanen
parent 5af556e2b8
commit f48d75dcae
  1. 8
      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']

Loading…
Cancel
Save