build/pymake/make.py
author Mike Hommey <mh+mozilla@glandium.org>
Tue, 02 Oct 2012 14:17:43 +0200
changeset 108890 dc70ce87180c1c8e2c68ece7c5927205eb6ff7e9
parent 95106 e5e7f60fe0bed65a97963e5d5c9adc0d379a8f3e
child 132432 aaf004a8213201fadf5242f12fde18506bd0a862
permissions -rwxr-xr-x
Bug 794490 - Don't buffer stdout and stderr in pymake. r=ted

#!/usr/bin/env python

"""
make.py

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)

  gc.disable()

  pymake.command.main(sys.argv[1:], os.environ, os.getcwd(), cb=sys.exit)
  pymake.process.ParallelContext.spin()
  assert False, "Not reached"