aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compilers.py15
-rw-r--r--ninjabackend.py3
2 files changed, 1 insertions, 17 deletions
diff --git a/compilers.py b/compilers.py
index be5d0cc..a8a7746 100644
--- a/compilers.py
+++ b/compilers.py
@@ -175,9 +175,6 @@ class CCompiler():
def get_linker_output_args(self, outputname):
return ['-o', outputname]
- def get_debug_args(self):
- return ['-g']
-
def get_coverage_args(self):
return ['--coverage']
@@ -543,9 +540,6 @@ class MonoCompiler():
def get_linker_output_args(self, outputname):
return []
- def get_debug_args(self):
- return ['-g']
-
def get_coverage_args(self):
return []
@@ -685,9 +679,6 @@ class JavaCompiler():
def get_linker_output_args(self, outputname):
return []
- def get_debug_args(self):
- return ['-g']
-
def get_coverage_args(self):
return []
@@ -893,9 +884,6 @@ class VisualStudioCCompiler(CCompiler):
pchname = self.get_pch_name(header)
return ['/FI' + base, '/Yu' + base, '/Fp' + os.path.join(pch_dir, pchname)]
- def get_debug_args(self):
- return ['/D_DEBUG', '/Zi', '/MDd', '/Ob0', '/RTC1']
-
def get_compile_only_args(self):
return ['/c']
@@ -1122,9 +1110,6 @@ class GnuCPPCompiler(CPPCompiler):
def get_always_args(self):
return ['-pipe']
- def get_debug_args(self):
- return GnuCPPCompiler.std_debug_args
-
def get_std_warn_args(self):
return GnuCPPCompiler.std_warn_args
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'