Skip to content

@sid0 /gist:3582912
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# 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:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.