summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-11-13 09:11:01 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commitb99ca7b394f6fa8f17f0fbcb0c2dc9896c4b0ed9 (patch)
tree235eb094949bde2bbfd512008abd06e6cc6161a2 /mesonbuild/compilers/d.py
parent86b2cf3d1da242e22e71e506159136dd40473d30 (diff)
downloadmeson-b99ca7b394f6fa8f17f0fbcb0c2dc9896c4b0ed9.tar.gz
compilers: Remove Environment parameter from Compiler.alignment
This also fixes the helper `_cross_alignment` method.
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r--mesonbuild/compilers/d.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index 4e31ded83..6a09f0d01 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -595,7 +595,7 @@ class DCompiler(Compiler):
raise mesonlib.EnvironmentException('Could not run sizeof test binary.')
return int(res.stdout), res.cached
- def alignment(self, typename: str, prefix: str, env: 'Environment', *,
+ def alignment(self, typename: str, prefix: str, *,
extra_args: T.Optional[T.List[str]] = None,
dependencies: T.Optional[T.List['Dependency']] = None) -> T.Tuple[int, bool]:
if extra_args is None:
@@ -607,7 +607,7 @@ class DCompiler(Compiler):
writeln(({typename}).alignof);
}}
'''
- res = self.run(t, env, extra_args=extra_args,
+ res = self.run(t, self.environment, extra_args=extra_args,
dependencies=dependencies)
if not res.compiled:
raise mesonlib.EnvironmentException('Could not compile alignment test.')