Add debug flags to the mix.

pull/15/head
Jussi Pakkanen 12 years ago
parent a7b991bfd4
commit ec08280df1
  1. 9
      environment.py
  2. 1
      shellgenerator.py

@ -41,13 +41,16 @@ class CCompiler():
def get_exelist(self):
return self.exelist
def get_compile_only_flags(self):
return ['-c']
def get_output_flags(self):
return ['-o']
def get_debug_flags(self):
return ['-g']
def can_compile(self, filename):
suffix = filename.split('.')[-1]
if suffix == 'c' or suffix == 'h':

@ -47,6 +47,7 @@ class ShellGenerator():
abs_obj = os.path.join(self.environment.get_build_dir(), src)
abs_obj += '.' + self.environment.get_object_suffix()
commands = compiler.get_exelist()
commands += compiler.get_debug_flags()
commands += compiler.get_std_warn_flags()
commands += compiler.get_compile_only_flags()
commands.append(abs_src)

Loading…
Cancel
Save