aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2012-12-29 19:51:32 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2012-12-29 19:51:32 +0200
commita7b991bfd4229bbefc93ff652cc12aa40613d8cb (patch)
treeb0d138d883f9c496bd5d3d1f3690502ed1659944 /environment.py
parente006116936841a2dc3515cab217c94ebbb14cf30 (diff)
downloadmeson-a7b991bfd4229bbefc93ff652cc12aa40613d8cb.zip
meson-a7b991bfd4229bbefc93ff652cc12aa40613d8cb.tar.gz
meson-a7b991bfd4229bbefc93ff652cc12aa40613d8cb.tar.bz2
Can generate compile commands.
Diffstat (limited to 'environment.py')
-rwxr-xr-xenvironment.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/environment.py b/environment.py
index 330a674..baf9336 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()