aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2019-02-26 00:13:52 -0500
committerDylan Baker <dylan@pnwbakers.com>2019-02-27 13:10:16 -0800
commit2622e9ec323126edadfcd7017e6ee63c026abb9c (patch)
treefa9c95d9b6209919263f6082c756725fdcad7ded /mesonbuild/interpreter.py
parent94fe01deec9b41ca3bfed3d04efc23ba50dd3cf5 (diff)
downloadmeson-2622e9ec323126edadfcd7017e6ee63c026abb9c.zip
meson-2622e9ec323126edadfcd7017e6ee63c026abb9c.tar.gz
meson-2622e9ec323126edadfcd7017e6ee63c026abb9c.tar.bz2
Move some configuration classes out of environment.py
First of all, I'd like compilers and other modules that environment.py currently imports to be able to take these without creating hard-to-follow module cycles. Second of all, environment.py's exact purpose seems a bit obscured. Splitting the data types (and basic pure functions) from the more complex logic that infers that data seems like a good way to separate concerns.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 8449ea6..5f19bc5 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2025,7 +2025,7 @@ class Interpreter(InterpreterBase):
# have the compilers needed to gain more knowledge, so wipe out old
# inferrence and start over.
self.build.environment.machines.miss_defaulting()
- self.build.environment.machines.detect_build(self.coredata.compilers)
+ self.build.environment.detect_build_machine(self.coredata.compilers)
self.build.environment.machines.default_missing()
assert self.build.environment.machines.build.cpu is not None
assert self.build.environment.machines.host.cpu is not None