Skip to content

Commit 0f65a59

Browse files
committed
Removed remnants of old debug funcs.
1 parent 3630feb commit 0f65a59

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

compilers.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,6 @@ def get_output_args(self, target):
175175
def get_linker_output_args(self, outputname):
176176
return ['-o', outputname]
177177

178-
def get_debug_args(self):
179-
return ['-g']
180-
181178
def get_coverage_args(self):
182179
return ['--coverage']
183180

@@ -543,9 +540,6 @@ def get_compile_only_args(self):
543540
def get_linker_output_args(self, outputname):
544541
return []
545542

546-
def get_debug_args(self):
547-
return ['-g']
548-
549543
def get_coverage_args(self):
550544
return []
551545

@@ -685,9 +679,6 @@ def get_output_args(self, subdir):
685679
def get_linker_output_args(self, outputname):
686680
return []
687681

688-
def get_debug_args(self):
689-
return ['-g']
690-
691682
def get_coverage_args(self):
692683
return []
693684

@@ -893,9 +884,6 @@ def get_pch_use_args(self, pch_dir, header):
893884
pchname = self.get_pch_name(header)
894885
return ['/FI' + base, '/Yu' + base, '/Fp' + os.path.join(pch_dir, pchname)]
895886

896-
def get_debug_args(self):
897-
return ['/D_DEBUG', '/Zi', '/MDd', '/Ob0', '/RTC1']
898-
899887
def get_compile_only_args(self):
900888
return ['/c']
901889

@@ -1122,9 +1110,6 @@ def __init__(self, exelist, version, gcc_type, is_cross, exe_wrap):
11221110
def get_always_args(self):
11231111
return ['-pipe']
11241112

1125-
def get_debug_args(self):
1126-
return GnuCPPCompiler.std_debug_args
1127-
11281113
def get_std_warn_args(self):
11291114
return GnuCPPCompiler.std_warn_args
11301115

ninjabackend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,7 @@ def generate_cs_target(self, target, outfile):
652652
def generate_single_java_compile(self, subdir, src, target, compiler, outfile):
653653
buildtype = self.environment.coredata.buildtype
654654
args = []
655-
if buildtype == 'debug':
656-
args += compiler.get_debug_args()
655+
args += compiler.get_buildtype_args(self.environment.coredata.buildtype)
657656
args += compiler.get_output_args(self.get_target_private_dir(target))
658657
rel_src = os.path.join(self.build_to_src, subdir, src)
659658
plain_class_path = src[:-4] + 'class'

0 commit comments

Comments
 (0)