diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-13 09:04:25 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | b8d25da6e22f6d7d1e39f9b9bbc2299fc1ad090a (patch) | |
| tree | 449fdf45e9d8af6f08a801b37be3d80dbf645b49 /mesonbuild/compilers/compilers.py | |
| parent | 252faf5be8ffb23b5f335ebf10c7f1c3d3717ec5 (diff) | |
| download | meson-b8d25da6e22f6d7d1e39f9b9bbc2299fc1ad090a.tar.gz | |
compilers: Remove Environment parameter from Compiler.sanitizer_args
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
| -rw-r--r-- | mesonbuild/compilers/compilers.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 2e66343a7..e72d4acf9 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -295,7 +295,7 @@ def get_base_compile_args(target: 'BuildTarget', compiler: 'Compiler', env: 'Env assert isinstance(sanitize, list) if sanitize == ['none']: sanitize = [] - sanitize_args = compiler.sanitizer_compile_args(target, env, sanitize) + sanitize_args = compiler.sanitizer_compile_args(target, sanitize) # We consider that if there are no sanitizer arguments returned, then # the language doesn't support them. if sanitize_args: @@ -369,7 +369,7 @@ def get_base_link_args(target: 'BuildTarget', assert isinstance(sanitizer, list) if sanitizer == ['none']: sanitizer = [] - sanitizer_args = linker.sanitizer_link_args(target, env, sanitizer) + sanitizer_args = linker.sanitizer_link_args(target, sanitizer) # We consider that if there are no sanitizer arguments returned, then # the language doesn't support them. if sanitizer_args: @@ -1056,10 +1056,10 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): def get_lto_obj_cache_path(self, path: str) -> T.List[str]: return self.linker.get_lto_obj_cache_path(path) - def sanitizer_compile_args(self, target: T.Optional[BuildTarget], env: Environment, value: T.List[str]) -> T.List[str]: + def sanitizer_compile_args(self, target: T.Optional[BuildTarget], value: T.List[str]) -> T.List[str]: return [] - def sanitizer_link_args(self, target: T.Optional[BuildTarget], env: Environment, value: T.List[str]) -> T.List[str]: + def sanitizer_link_args(self, target: T.Optional[BuildTarget], value: T.List[str]) -> T.List[str]: return self.linker.sanitizer_args(value) def get_asneeded_args(self) -> T.List[str]: |
