aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-06-18 01:22:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-06-18 01:22:55 +0300
commitf22376701bdebbda70b8d521a2da8f5376e6fdaa (patch)
tree6e7f995e9953853364fe0f70cc61e9aed29a8a19 /build.py
parent5fee2dd325680ca8ca4fa5727259ef17cdb859e9 (diff)
downloadmeson-f22376701bdebbda70b8d521a2da8f5376e6fdaa.zip
meson-f22376701bdebbda70b8d521a2da8f5376e6fdaa.tar.gz
meson-f22376701bdebbda70b8d521a2da8f5376e6fdaa.tar.bz2
Can compile very basic Rust programs.
Diffstat (limited to 'build.py')
-rw-r--r--build.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/build.py b/build.py
index 2139187..c1e7acd 100644
--- a/build.py
+++ b/build.py
@@ -51,9 +51,7 @@ class Build:
return False
def add_compiler(self, compiler):
- lang = compiler.get_language()
- if self.static_linker is None and lang != 'java'\
- and lang != 'vala':
+ if self.static_linker is None and compiler.needs_static_linker():
self.static_linker = self.environment.detect_static_linker(compiler)
if self.has_language(compiler.get_language()):
return