summaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-09-11 23:21:34 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2017-09-11 23:50:12 +0300
commitb3c70f495b736ff4ebe4c5097df2a5da0ea1ab80 (patch)
tree4b6a7c93a4ad59db6a269c2d07197d98a28da4a4 /mesonbuild/mesonlib.py
parent77bf63d6638cdb3f659cc97179e27d96a85c25a6 (diff)
downloadmeson-b3c70f495b736ff4ebe4c5097df2a5da0ea1ab80.tar.gz
interpreter: Always flatten when unholding arrays
Otherwise we might end up with wrapper holders in the Build object and pickling will then fail, defeating the purpose of the holder objects. Closes https://github.com/mesonbuild/meson/issues/2211
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 305f60078..4862e23e6 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -707,6 +707,7 @@ def windows_proof_rmtree(f):
def unholder_array(entries):
result = []
+ entries = flatten(entries)
for e in entries:
if hasattr(e, 'held_object'):
e = e.held_object