patches from Mark Hammond
compile.py:
On Windows, use 'nul' instead of '/dev/null'.
test.py:
Use double-quotes for the command-line, as Windows doesnt recognise
singles.
diff --git a/Tools/compiler/compile.py b/Tools/compiler/compile.py
index 7d6facf..5d82c3d 100644
--- a/Tools/compiler/compile.py
+++ b/Tools/compiler/compile.py
@@ -11,7 +11,10 @@
VERBOSE = 1
visitor.ASTVisitor.VERBOSE = visitor.ASTVisitor.VERBOSE + 1
if k == '-q':
- f = open('/dev/null', 'wb')
+ if sys.platform[:3]=="win":
+ f = open('nul', 'wb') # /dev/null fails on Windows...
+ else:
+ f = open('/dev/null', 'wb')
sys.stdout = f
if not args:
print "no files to compile"