summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/visualstudio.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-31 11:15:01 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commit25af927a6e5ebd4c53b4e43ccab35ed89a7ee0d8 (patch)
treec1ee0cc2ece86f3eb1c419e5393e80fb6ee2af2e /mesonbuild/compilers/mixins/visualstudio.py
parent3832a592db68e935e6653a503a26b41f5777ae2e (diff)
downloadmeson-25af927a6e5ebd4c53b4e43ccab35ed89a7ee0d8.tar.gz
compilers: Remove Environment parameter from Compiler._build_wrapper
Diffstat (limited to 'mesonbuild/compilers/mixins/visualstudio.py')
-rw-r--r--mesonbuild/compilers/mixins/visualstudio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py
index 6d9b7ac7b..1a00721b6 100644
--- a/mesonbuild/compilers/mixins/visualstudio.py
+++ b/mesonbuild/compilers/mixins/visualstudio.py
@@ -297,7 +297,7 @@ class VisualStudioLikeCompiler(Compiler, metaclass=abc.ABCMeta):
# http://stackoverflow.com/questions/15259720/how-can-i-make-the-microsoft-c-compiler-treat-unknown-flags-as-errors-rather-t
def has_arguments(self, args: T.List[str], env: 'Environment', code: str, mode: CompileCheckMode) -> T.Tuple[bool, bool]:
warning_text = '4044' if mode == CompileCheckMode.LINK else '9002'
- with self._build_wrapper(code, env, extra_args=args, mode=mode) as p:
+ with self._build_wrapper(code, extra_args=args, mode=mode) as p:
if p.returncode != 0:
return False, p.cached
return not (warning_text in p.stderr or warning_text in p.stdout), p.cached