author Gregory Szorc <>
Mon, 20 May 2013 14:07:15 -0700
changeset 132432 aaf004a8213201fadf5242f12fde18506bd0a862
parent 108890 dc70ce87180c1c8e2c68ece7c5927205eb6ff7e9
child 148870 0005c66e4de4d6c4221f2807260b73cebf0d10f5
permissions -rwxr-xr-x
Bug 872856 - Temporarily increase Python recursion limit in pymake; r=ted

#!/usr/bin/env python


A drop-in or mostly drop-in replacement for GNU make.

import sys, os
import pymake.command, pymake.process

import gc

if __name__ == '__main__':
  sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
  sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0)


  # This is meant as a temporary workaround until issues with many targets
  # and prerequisites is addressed. Bug 874210 tracks.
      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)
  assert False, "Not reached"