aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/mesonmain.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-07-21 12:26:20 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2021-07-21 13:33:06 -0400
commit0183954ea1219b2f86c8c7e15431a0908a8aa776 (patch)
tree3e400584525a487e1081e646f0c486df044ba210 /mesonbuild/interpreter/mesonmain.py
parent9afd589c8b77d1e9d279813a71ec1451476a0be8 (diff)
downloadmeson-0183954ea1219b2f86c8c7e15431a0908a8aa776.zip
meson-0183954ea1219b2f86c8c7e15431a0908a8aa776.tar.gz
meson-0183954ea1219b2f86c8c7e15431a0908a8aa776.tar.bz2
Fix meson.version().version_compare() regression in subproject
Diffstat (limited to 'mesonbuild/interpreter/mesonmain.py')
-rw-r--r--mesonbuild/interpreter/mesonmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/mesonmain.py b/mesonbuild/interpreter/mesonmain.py
index bea12e0..97a695b 100644
--- a/mesonbuild/interpreter/mesonmain.py
+++ b/mesonbuild/interpreter/mesonmain.py
@@ -22,7 +22,7 @@ if T.TYPE_CHECKING:
class MesonMain(MesonInterpreterObject):
def __init__(self, build: 'build.Build', interpreter: 'Interpreter'):
- super().__init__()
+ super().__init__(subproject=interpreter.subproject)
self.build = build
self.interpreter = interpreter
self.methods.update({'get_compiler': self.get_compiler_method,