compilers: fix can_compile. Closes #189

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
pull/190/head
Igor Gnatenko 10 years ago
parent 8cdd4c0c3c
commit 19ae286aff
  1. 5
      compilers.py

@ -837,8 +837,9 @@ class ValaCompiler():
if pc.returncode != 0:
raise EnvironmentException('Vala compiler %s can not compile programs.' % self.name_string())
def can_compile(self, fname):
return fname.endswith('.vala') or fname.endswith('.vapi')
def can_compile(self, filename):
suffix = filename.split('.')[-1]
return suffix in ('vala', 'vapi')
class RustCompiler():
def __init__(self, exelist, version):

Loading…
Cancel
Save