summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objcpp.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-31 11:27:53 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commit8938f5efad47364da9e6234660562ae5a05f1c06 (patch)
tree0f242235ed9c95f94be0605ef16273d256ce98cd /mesonbuild/compilers/objcpp.py
parentfc97e4f395e6ad551eb71b97b85df24302bcb7a4 (diff)
downloadmeson-8938f5efad47364da9e6234660562ae5a05f1c06.tar.gz
compilers: Remove Environment parameter from Compiler.sanity_check
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
-rw-r--r--mesonbuild/compilers/objcpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py
index 6a4f45e25..ae3750335 100644
--- a/mesonbuild/compilers/objcpp.py
+++ b/mesonbuild/compilers/objcpp.py
@@ -48,9 +48,9 @@ class ObjCPPCompiler(CLikeCompiler, Compiler):
def get_display_language() -> str:
return 'Objective-C++'
- def sanity_check(self, work_dir: str, environment: 'Environment') -> None:
+ def sanity_check(self, work_dir: str) -> None:
code = '#import<stdio.h>\nclass MyClass;int main(void) { return 0; }\n'
- return self._sanity_check_impl(work_dir, environment, 'sanitycheckobjcpp.mm', code)
+ return self._sanity_check_impl(work_dir, 'sanitycheckobjcpp.mm', code)
def get_options(self) -> MutableKeyedOptionDictType:
opts = super().get_options()