aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-12-04 21:28:36 +0000
committerDylan Baker <dylan@pnwbakers.com>2019-05-20 11:29:17 -0700
commitfb35e6faac2a5efbb8fd0ff6ee5627b144adb184 (patch)
tree66a742bc32d10d06058a4eefe2d7f0c74c385292 /mesonbuild/build.py
parent3ff758f22d8db14171b0cc31e487a24808dd1648 (diff)
downloadmeson-fb35e6faac2a5efbb8fd0ff6ee5627b144adb184.zip
meson-fb35e6faac2a5efbb8fd0ff6ee5627b144adb184.tar.gz
meson-fb35e6faac2a5efbb8fd0ff6ee5627b144adb184.tar.bz2
Remove compiler data from build object
The actual data is in Coredata (which is serialized) and we just held a reference in Build for (in)convenience.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 093ab8f..d51e2e3 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -114,9 +114,6 @@ class Build:
self.environment = environment
self.projects = {}
self.targets = OrderedDict()
- # Coredata holds the state. This is just here for convenience.
- self.compilers = environment.coredata.compilers
- self.cross_compilers = environment.coredata.cross_compilers
self.global_args = {}
self.projects_args = {}
self.global_link_args = {}
@@ -149,10 +146,6 @@ class Build:
def copy(self):
other = Build(self.environment)
for k, v in self.__dict__.items():
- if k in ['compilers', 'cross_compilers']:
- # These alias coredata's fields of the same name, and must not
- # become copies.
- continue
if isinstance(v, (list, dict, set, OrderedDict)):
other.__dict__[k] = v.copy()
else: