aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-03-21 20:43:54 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-24 13:33:27 +0200
commit3037ade41dc0cfc1cb84b0a668784c8d1af46987 (patch)
tree0b0947948d732fd33cfbc2f1482c0aad7808080f /mesonbuild/environment.py
parent4e5edff60f4874866d16e7ec43c5927b6af03f8c (diff)
downloadmeson-3037ade41dc0cfc1cb84b0a668784c8d1af46987.zip
meson-3037ade41dc0cfc1cb84b0a668784c8d1af46987.tar.gz
meson-3037ade41dc0cfc1cb84b0a668784c8d1af46987.tar.bz2
Inline check_compilers
This function is used just once. It also seems all policy and no mechanism (it raises, it calls the same function to do all the work twice in a simple way). This makes it seem to be as a good candidate for inlining. `environment` and `coredata` are woefully intertwined and while this change doesn't fix that, but at least it makes it easier to follow.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index d0dccf4..0832463 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -1127,14 +1127,6 @@ class Environment:
return comp, cross_comp
- def check_compilers(self, lang: str, comp: Compiler, cross_comp: Compiler):
- if comp is None:
- raise EnvironmentException('Tried to use unknown language "%s".' % lang)
-
- comp.sanity_check(self.get_scratch_dir(), self)
- if cross_comp:
- cross_comp.sanity_check(self.get_scratch_dir(), self)
-
def detect_compilers(self, lang: str, need_cross_compiler: bool):
(comp, cross_comp) = self.compilers_from_language(lang, need_cross_compiler)
if comp is not None: