From 5bd28febf7887eebc8e55aa6e39962ae7da51281 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 13 Mar 2024 01:13:23 +0000 Subject: 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 Signed-off-by: Eli Schwartz --- mesonbuild/compilers/cpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers/cpp.py') 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'] -- cgit v1.2.3