From a7b991bfd4229bbefc93ff652cc12aa40613d8cb Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 29 Dec 2012 19:51:32 +0200 Subject: Can generate compile commands. --- environment.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'environment.py') diff --git a/environment.py b/environment.py index 330a67403..baf933628 100755 --- a/environment.py +++ b/environment.py @@ -49,7 +49,7 @@ class CCompiler(): return ['-o'] def can_compile(self, filename): - suffix = filename.split['.'][-1] + suffix = filename.split('.')[-1] if suffix == 'c' or suffix == 'h': return True return False @@ -114,6 +114,7 @@ class Environment(): self.shared_lib_prefix = 'lib' self.static_lib_suffix = 'a' self.static_lib_prefix = 'lib' + self.object_suffix = 'o' def get_c_compiler(self): evar = 'CC' @@ -147,6 +148,9 @@ class Environment(): def get_static_lib_suffix(self): return self.static_lib_suffix + + def get_object_suffix(self): + return self.object_suffix if __name__ == '__main__': test_cmd_line_building() -- cgit v1.2.3