From 6ccd708f30e3649f6d531eebb8301132cb0f0759 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 22 Dec 2023 10:05:17 -0800 Subject: modules: get rid of the .*machine variables They're hardly used, and can be gotten directly from the Environment instead --- mesonbuild/modules/python3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/python3.py') diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index a5e9cca01..45ad850aa 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -41,7 +41,7 @@ class Python3Module(ExtensionModule): @typed_pos_args('python3.extension_module', str, varargs=(str, mesonlib.File, CustomTarget, CustomTargetIndex, GeneratedList, StructuredSources, ExtractedObjects, BuildTarget)) @typed_kwargs('python3.extension_module', *_MOD_KWARGS, allow_unknown=True) def extension_module(self, state: ModuleState, args: T.Tuple[str, T.List[BuildTargetSource]], kwargs: SharedModuleKW): - host_system = state.host_machine.system + host_system = state.environment.machines.host.system if host_system == 'darwin': # Default suffix is 'dylib' but Python does not use it for extensions. suffix = 'so' -- cgit v1.2.3