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:
parent
acc64df657
commit
4708b1b730
@ -44,6 +44,10 @@ POST_LAZY = 1
|
|||||||
POST_BOTH = 2
|
POST_BOTH = 2
|
||||||
"""Post mode: post the task generators at once, then re-check them for each group"""
|
"""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):
|
class BuildContext(Context.Context):
|
||||||
'''executes the build'''
|
'''executes the build'''
|
||||||
|
|
||||||
@ -322,7 +326,7 @@ class BuildContext(Context.Context):
|
|||||||
try:
|
try:
|
||||||
waflib.Node.pickle_lock.acquire()
|
waflib.Node.pickle_lock.acquire()
|
||||||
waflib.Node.Nod3 = self.node_class
|
waflib.Node.Nod3 = self.node_class
|
||||||
x = cPickle.dumps(data, -1)
|
x = cPickle.dumps(data, PROTOCOL)
|
||||||
finally:
|
finally:
|
||||||
waflib.Node.pickle_lock.release()
|
waflib.Node.pickle_lock.release()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user