From ec08280df103bb24cebe66523886a02809c3a095 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 29 Dec 2012 20:02:37 +0200 Subject: Add debug flags to the mix. --- environment.py | 9 ++++++--- shellgenerator.py | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/environment.py b/environment.py index baf933628..622f1744f 100755 --- a/environment.py +++ b/environment.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': diff --git a/shellgenerator.py b/shellgenerator.py index 3d8674d6e..36dce31e6 100755 --- a/shellgenerator.py +++ b/shellgenerator.py @@ -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) -- cgit v1.2.3