aboutsummaryrefslogtreecommitdiff
path: root/ninjabackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ninjabackend.py')
-rw-r--r--ninjabackend.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ninjabackend.py b/ninjabackend.py
index 831812f..b9c033f 100644
--- a/ninjabackend.py
+++ b/ninjabackend.py
@@ -652,8 +652,7 @@ class NinjaBackend(backends.Backend):
def generate_single_java_compile(self, subdir, src, target, compiler, outfile):
buildtype = self.environment.coredata.buildtype
args = []
- if buildtype == 'debug':
- args += compiler.get_debug_args()
+ args += compiler.get_buildtype_args(self.environment.coredata.buildtype)
args += compiler.get_output_args(self.get_target_private_dir(target))
rel_src = os.path.join(self.build_to_src, subdir, src)
plain_class_path = src[:-4] + 'class'