diff options
author | John Ericson <git@JohnEricson.me> | 2018-10-05 11:37:43 -0400 |
---|---|---|
committer | John Ericson <git@JohnEricson.me> | 2018-10-05 23:31:15 -0400 |
commit | d69d2697cd24bd59181916f39c4284a7679b6da4 (patch) | |
tree | c37ce15ed6825842f51bec0b6996805277221f04 /mesonbuild/environment.py | |
parent | 2ff69b20df0864182fdf2b146d29dc67d0cb9a5b (diff) | |
download | meson-d69d2697cd24bd59181916f39c4284a7679b6da4.zip meson-d69d2697cd24bd59181916f39c4284a7679b6da4.tar.gz meson-d69d2697cd24bd59181916f39c4284a7679b6da4.tar.bz2 |
Pull out essence total map essence of MachineInfos into PerMachine
We'll eventually have many other data structure duplicated for each
build, host, and target machines. This sets up the infrastructure for
that.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index f01ba38..fe06c36 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -17,7 +17,7 @@ import configparser, os, platform, re, sys, shlex, shutil, subprocess from . import coredata from .linkers import ArLinker, ArmarLinker, VisualStudioLinker, DLinker from . import mesonlib -from .mesonlib import EnvironmentException, Popen_safe +from .mesonlib import EnvironmentException, PerMachine, Popen_safe from . import mlog from . import compilers @@ -1147,11 +1147,9 @@ class MachineInfo: literal['cpu'], literal['endian']) -class MachineInfos: +class MachineInfos(PerMachine): def __init__(self): - self.build = None - self.host = None - self.target = None + super().__init__(None, None, None) def default_missing(self): """Default host to buid and target to host. |