Bug 872856 - Temporarily increase Python recursion limit in pymake; r=ted

This commit is contained in:
Gregory Szorc 2013-05-20 14:07:15 -07:00
parent d881e6a11a
commit 3a41b0cbea

View File

@ -17,6 +17,13 @@ if __name__ == '__main__':
gc.disable()
# This is meant as a temporary workaround until issues with many targets
# and prerequisites is addressed. Bug 874210 tracks.
try:
sys.setrecursionlimit(2 * sys.getrecursionlimit())
except Exception:
print >>sys.stderr, 'Unable to increase Python recursion limit.'
pymake.command.main(sys.argv[1:], os.environ, os.getcwd(), cb=sys.exit)
pymake.process.ParallelContext.spin()
assert False, "Not reached"