aboutsummaryrefslogtreecommitdiff
path: root/environment.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-05-10 02:26:54 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-05-10 02:26:54 +0300
commit7edd58f591a91542ecb3e1ed694f458f5eff586e (patch)
treef6d6ce5d6f4b5962ec4dc644b0f105bd16b1ec5d /environment.py
parent9c2364b51564f11815c2c04c08fdd53ae01ef1fa (diff)
downloadmeson-7edd58f591a91542ecb3e1ed694f458f5eff586e.zip
meson-7edd58f591a91542ecb3e1ed694f458f5eff586e.tar.gz
meson-7edd58f591a91542ecb3e1ed694f458f5eff586e.tar.bz2
Now can compile Vala executables.
Diffstat (limited to 'environment.py')
-rw-r--r--environment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/environment.py b/environment.py
index d484c2b..15ff7da 100644
--- a/environment.py
+++ b/environment.py
@@ -574,6 +574,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')
+
class VisualStudioCCompiler(CCompiler):
std_warn_flags = ['/W3']
std_opt_flags= ['/O2']