aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
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