public
Created

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
# HG changeset patch
# User Siddharth Agarwal <sid.bugzilla@gmail.com>
# Date 1346524926 -19800
# Node ID 78cc2ca0914c8ca2c8ba4a650b3af792d53e9609
# Parent 3a8b3255f42b95c0069b78d807ad95995ef263db
Make Pymake a stub for GNU make.
 
diff --git a/build/pymake/make.py b/build/pymake/make.py
--- a/build/pymake/make.py
+++ b/build/pymake/make.py
@@ -1,19 +1,11 @@
#!/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
+import subprocess
if __name__ == '__main__':
- gc.disable()
+ # Work around bug 777798.
+ if os.environ.has_key("PWD"):
+ del os.environ["PWD"]
- pymake.command.main(sys.argv[1:], os.environ, os.getcwd(), cb=sys.exit)
- pymake.process.ParallelContext.spin()
- assert False, "Not reached"
+ subprocess.check_call(["make"] + sys.argv[1:])

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.