summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-03-13 01:13:23 +0000
committerEli Schwartz <eschwartz93@gmail.com>2024-03-28 00:52:25 -0400
commit5bd28febf7887eebc8e55aa6e39962ae7da51281 (patch)
tree46babf1dcb5d3e1665f50028b93ecaacc5475df1 /mesonbuild/compilers/cpp.py
parent31314419aac57c45d82578700051f6ed999176af (diff)
downloadmeson-5bd28febf7887eebc8e55aa6e39962ae7da51281.tar.gz
Pass Environment down from Backend
We'll need it in a moment for get_base_compile_args -> get_assert_args. Bug: https://github.com/mesonbuild/meson/issues/12962 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 2a2f7615d..c26def9fc 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -307,7 +307,7 @@ class ClangCPPCompiler(_StdCPPLibMixin, ClangCompiler, CPPCompiler):
return libs
return []
- def get_assert_args(self, disable: bool) -> T.List[str]:
+ def get_assert_args(self, disable: bool, env: 'Environment') -> T.List[str]:
args: T.List[str] = []
if disable:
return ['-DNDEBUG']
@@ -502,7 +502,7 @@ class GnuCPPCompiler(_StdCPPLibMixin, GnuCompiler, CPPCompiler):
return libs
return []
- def get_assert_args(self, disable: bool) -> T.List[str]:
+ def get_assert_args(self, disable: bool, env: 'Environment') -> T.List[str]:
if disable:
return ['-DNDEBUG']