2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +01:00

Workaround for an IronPython pickle bug

This commit is contained in:
Thomas Nagy 2015-10-07 01:11:36 +02:00
parent acc64df657
commit 4708b1b730
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -44,6 +44,10 @@ POST_LAZY = 1
POST_BOTH = 2
"""Post mode: post the task generators at once, then re-check them for each group"""
PROTOCOL = -1
if sys.platform == 'cli':
PROTOCOL = 0
class BuildContext(Context.Context):
'''executes the build'''
@ -322,7 +326,7 @@ class BuildContext(Context.Context):
try:
waflib.Node.pickle_lock.acquire()
waflib.Node.Nod3 = self.node_class
x = cPickle.dumps(data, -1)
x = cPickle.dumps(data, PROTOCOL)
finally:
waflib.Node.pickle_lock.release()