memory/jemalloc/build-crt.py
author Zack Weinberg <zweinberg@mozilla.com>
Mon, 28 Jun 2010 10:36:20 -0700
changeset 46351 6a6fbf66e1e01b945cfa1b59d2a9e7717504b8b1
parent 31983 d25e72de30f1a518690f10499d5852d8a3713816
permissions -rw-r--r--
Bug 571989 part 2: Fold gfx/public and gfx/idl into gfx/src.

#!/usr/bin/env python

import os, sys
from subprocess import Popen, STDOUT, PIPE

if 'MAKEFLAGS' in os.environ:
  del os.environ['MAKEFLAGS']
proc = Popen(['nmake', 'dll_', 'dll_p', 'mt'], stdout=PIPE, stderr=STDOUT,
             cwd=sys.argv[1])

while True:
  line = proc.stdout.readline()
  if line == '':
    break
  line = line.rstrip()
  # explicitly ignore this fatal-sounding non-fatal error
  if line == "NMAKE : fatal error U1052: file 'makefile.sub' not found" or line == "Stop.":
    continue
  print line
sys.exit(proc.wait())