Created
September 1, 2012 18:43
-
-
Save sunshowers/3582912 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HG changeset patch | |
# User Siddharth Agarwal <[email protected]> | |
# 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